Welcome to WebmasterWorld Guest from 54.156.92.140

Forum Moderators: Robert Charlton & andy langton & goodroi

Message Too Old, No Replies

302 redirect for domain root - from Google's JohnMu

     
3:22 pm on May 8, 2010 (gmt 0)

Senior Member

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:May 26, 2000
posts:37301
votes: 0


From Google's JohnMu (John Mueller), here's some confirmation of a practice I've been noticing over the years. If you are redirecting your domain root to an inner URL in order to serve your home page, then a 302 is the best kind of redirect, not a 301.

For what it's worth, a 302 redirect is the correct redirect from a root URL to a detail page (such as from "/" to "/sites/bursa/"). This is one of the few situations where a 302 redirect is preferred over a 301 redirect.

Google Webmaster Central Forum [google.com]

I've seen this in action and wondered about Google's preference. The 302 always seemed to help, not hurt. So now we know. Using a 302 helps to keep the domain root in the index, with the content ranked according to the target URL.

Thanks to Search Engine Roundtable [seroundtable.com] for calling out this Google Forum thread.
3:27 pm on May 8, 2010 (gmt 0)

Senior Member

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:May 26, 2000
posts:37301
votes: 0


I should add that John continues, saying it's still better to avoid the redirect altogether, when you can, that is.

I have seen some complex corporate infrastructures where avoiding the redirect was a LOT of trouble. For some reason, Java developers using JSP on Tomcat often run into this situation when they use multiple hostnames with a domain. I've seen other examples, too, but the Java thing seems to be common.
8:14 pm on May 8, 2010 (gmt 0)

Senior Member

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:July 3, 2002
posts:18903
votes: 0


Matt Cutts also mentioned this several years ago in passing.
3:41 pm on June 10, 2010 (gmt 0)

New User

5+ Year Member

joined:Apr 22, 2010
posts:14
votes: 0


I have a question regarding this.

If you use a 302 in this instance, and 302s do not pass link juice, does one lose the link juice from links that point to the root domain? Or are they passed to the URL that serves the content?
6:13 pm on June 10, 2010 (gmt 0)

Senior Member

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:May 26, 2000
posts:37301
votes: 0


I've worked with several large web infrastructures that used the 302 from the domain root - the PageRank stayed on the domain root for all of them.
3:42 am on June 11, 2010 (gmt 0)

Preferred Member

10+ Year Member

joined:Mar 29, 2007
posts:592
votes: 0


IMO, using redirect other than 301 would not pass Pagerank but at the same time would not even destroy it. In other words it would be retained for the page.
4:10 am on June 11, 2010 (gmt 0)

Senior Member

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:May 26, 2000
posts:37301
votes: 0


Right. One of the common uses of the 302 from the domain root is on a multi-lingual site, where an international company uses the IP address to 302 redirect to the country version that looks correct.
If they used a 301, the home page (domain root) would no longer show up in navigational search results looking for that exact company.

As long as there is a direct way for the user to go to another country version when they want to, it works pretty well. Google crawls completely from US IP addresses, but then they can follow those direct links to crawl all the versions.