Pages

Monday, June 11, 2012

Use a 301 vs. 302 Redirect


 Two types of redirects you can use, a 301 and a 302. These numbers refer to the HTTP Status Code returned by the server for a given URL. A 301 redirect tells the search engine that the page has moved permanently to the new URL. A 302 redirect tells the search engine that the move is only temporary, and you may decide to show content at the original location in the future without a redirect.

301 Redirects
All three major search engines handle 301 redirects the same, that is to say they ignore the original URL and instead index the destination URL. For example, www.beekerfurniture.com uses a 301 redirect to www.hendersonsfurniture.com and Google, MSN and Yahoo all return the result www.hendersonsfurniture.com when searching for “beeker furniture”. The word beeker doesn’t appear anywhere on the hendersonsfurniture.com site, and a site search in Google shows that only the home page has any relevance for the word. Clicking on the Cached link in the site search results further shows that the word only exists in links pointing to the site, “These terms only appear in links pointing to this page: beeker.” Those links Google is referring to are actually pointing to www.beekerfurniture.com and the 301 redirect is passing along the relevance of the word beeker to hendersonsfurniture.com.

301 redirects can be very powerful when you redesign your site and the URLs change, move to a different domain, acquire a new domain, or implement a URL rewrite. In most cases, this is the type of redirect you want to use because you know exactly how the search engines will respond.

302 Redirects
The three major engines handle 302 redirects very differently, and because of this 302s are typically not recommended.

Google treats 302 redirects differently depending if they are on-domain or off-domain. An example of an on-domain redirect is athletics.mlb.com which uses a 302 redirect to http://oakland.athletics.mlb.com/index.jsp?c_id=oak. If you search for “oakland a’s” in Google you will see that athletics.mlb.com is displayed in the results because links point to that URL, which in turn uses a 302 redirect to the destination page. This is a great example where 302 redirects can be used effectively, since the shorter URL looks much more enticing in the results pages.

Off-domain 302 redirects would be ripe for hijacking situations if treated the same way. Because of this, in most cases, Google will treat off-domain 302 redirects like 301s, where they will ignore the original URL and instead index the destination URL. I say most cases because Google will sometimes determine that the 302 is legitimate & index the original URL instead. An example of an off-domain redirect is pets.roanoke.com which uses a 302 redirect to a third-party site http://www.gadzoo.com/roanoke/pets.aspx. In this case, Google determined that this was a legitimate use of a 302 redirect and displays pets.roanoke.com when searching for “pets roanoke”.
Permanent short link for Go Daddy.com Just ez2.me
Spring Savings! $7.99 .com
Next time for Go Daddy: Easy to you just www.ez2.me Dadicated link for Go Daddy.com Just ez2.me

No comments:

Post a Comment