Contact Us Forum Rules Search Archive
WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Search Engines > Google Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Google Discussion Forum Google Discussion forum is for topics specifically related to Google. There is a subforum dedicated to AdSense/AdWords subjects.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-27-2004, 02:13 PM
canistotasoftware's Avatar
WebProWorld Pro
 

Join Date: Jun 2004
Location: South Dakota
Posts: 103
canistotasoftware RepRank 0
Default Java Script Re-Directs

I have just finished Mod_Rewriting my site to more SE friendly urls and many of the old pages are still receiving hits from google. Until the old pages get flushed from google I have placed JS redirects on the old pages to move to the new pages. I realize the best case scenerio would be to place permanent re-directs on these pages but since they are not static pages it would require over 3000 redirects. My question is does the Java redirects harm me in any way with google or would it be better to just keep the old pages intact until they get flushed from the index?
Reply With Quote
  #2 (permalink)  
Old 12-28-2004, 03:11 AM
brian.mark's Avatar
Administrator
 

Join Date: Jul 2004
Location: Omaha
Posts: 2,717
brian.mark RepRank 2brian.mark RepRank 2
Default Not static?

Most scripting languages will allow you to do a 301 from within the script to the new location, so being static or not shouldn't be an issue.

As for the JavaScript redirect, it shouldn't really harm you, but the old page will most likely stay in the index for a very long time this way. Using a 301 will cause it to flush sooner and pass along whatever rank it had to the new page.

Yahoo told us as SES in Chicago that a Meta refresh with a time of 0 is treated (by them) as a 301, while a higher number of seconds they treat as a 302. Meta refresh may be a better option for you if you can't get a scripted 301 to work.

Brian.
__________________
ToolBarn.com, an Internet Retailer Top 500 and Inc. 500 Company | Tool Parts | Pet Supplies
Reply With Quote
  #3 (permalink)  
Old 12-28-2004, 09:50 AM
canistotasoftware's Avatar
WebProWorld Pro
 

Join Date: Jun 2004
Location: South Dakota
Posts: 103
canistotasoftware RepRank 0
Default

Thanks Brian,

Located and inserted PHP 301 redirect script in place of the JS.
Reply With Quote
  #4 (permalink)  
Old 12-28-2004, 04:14 PM
brian.mark's Avatar
Administrator
 

Join Date: Jul 2004
Location: Omaha
Posts: 2,717
brian.mark RepRank 2brian.mark RepRank 2
Default Great!

Hey, let me know how that works out. I've never tried PHP, but it works wonderful in Perl. I use that all the time for tracking referrals from shopping search engines and PPC ads of all sorts. It also has made discontinued products more profitable, as I can redirect them to the replacement while the old page is still indexed.

Brian.
__________________
ToolBarn.com, an Internet Retailer Top 500 and Inc. 500 Company | Tool Parts | Pet Supplies
Reply With Quote
  #5 (permalink)  
Old 12-28-2004, 04:22 PM
WebProWorld Veteran
 

Join Date: Jul 2003
Location: Mass, U.S.A.
Posts: 434
Conficio RepRank 0
Default You found th ecorrect solution

I'd say, the PHP 301 redirect is much better than the JavaScript redirect.

Lets talk about the difference:
  • A (correctly) scripted 301 redirect is send as a HTTP header with no (or an empty) HTML body. That means every crawler or spider should understand it and a search engine can (and likely will) transfer the old weight (inbound links) to the new page. It also ensures the fastest transfer for every human user, that follows a link to the old page and ends up at the new page. This makes mostly sense if there is a 1:1 relationship between old pages and new pages.
  • A Meta redirect (using the meat tag) is usually a bit slower because it is still loads the full HTML page. It is also not considered a permanent (301) redirect and should not transfer the link weight to the (new) destination page. Exceptions are the strategies that some search engines do use, like yahoo!, where a meta redirect with wait 0 is treated like a 301.
  • A JavaScript redirect is for human consumption only. Search engine spiders and crawlers do usually only interpret the HTML part of your page. Some, like Google, try an educated guess with script code, but they do not interpret it. I have seen Google requesting additional URLs in a pattern, from JavaScript arguments that have a URL pattern. But, still it does not interpret the script.
So, if you correctly re scripted your dynamic application to redirect to the new pages, this is the one solution that will really work.

Hopefully, you have redirected every page to an equivalent page on the new site. If you just redirected all pages to your new home page, the effect will be not to great. Because, Google (and other search engines) considers the link text of your external link plus some context (words near by the link) and how they match to the content on the target page. For example, if you have a link to a specific page on the old site that talked about German Shepards and redirect it to the new German Shepard entry page, all should be fine. But if the link gets redirected to the new home page, that talks about animals and barely mentions dogs (but no German Shepards), that will NOT be as effective a link as the old one.

What you should do in addition to the redirect, is monitor your web logs and filter out all hits, that come through a direct link (referrer other than search engine or your own site). Make a statistic and contact the webmasters of sites, that have cumulative 85% of hits. Tell them exactly which link needs updating and what the exact new URL is. If you can, throw in an incentive that you link back to their site. This way you weed out all the old direct links and get the best results. Include directories in this effort.

Keep the redirect forever, as many sources can't be changed, such as mailing list archives, etc.

I hope this information helps you and others.

K<o>
Reply With Quote
  #6 (permalink)  
Old 12-28-2004, 04:34 PM
canistotasoftware's Avatar
WebProWorld Pro
 

Join Date: Jun 2004
Location: South Dakota
Posts: 103
canistotasoftware RepRank 0
Default

There were only a couple of pages that had dynamic content that couldn't be permanently 301 redirected via other means due to the 2000+ possible variations for each page. I used the PHP redirect code prior to the <head> tags with blank page bodies redirecting to the new dynamic pages pages and it seems to be working properly, i.e. my web logs reflect a 301 redirect is occurring each time a hit comes to the old pages via a search engine.
A sample of the redirect can be seen at http://www.canistotasoftware.com/showfeature.php?id=104

Thanks all for the help.
Reply With Quote
Reply

  WebProWorld > Search Engines > Google Discussion Forum
Tags: , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.2.0