Forum Moderators: Robert Charlton & goodroi

Message Too Old, No Replies

Will Google Handle Relative URL in redirect (301)

Is /foo.html the same as http://mysite.com/foo.html?

         

sublime1

6:23 pm on Feb 22, 2007 (gmt 0)

10+ Year Member



If we redirect a page bar.html to foo.html on the same domain using HTTP 301 (Moved Permanently) is it ok to use a relative URL (not fully qualified) in the redirect?

The HTTP specification says it is, and it works fine with browsers. Any reason to think a relative URL will not work with GoogleBot?

Thanks.

(P.S. Sorry, this is a duplicate of a post I made in the WebmasterWorld Supporters forum, but that was probably not the right place for it).

tedster

2:08 am on Feb 23, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Why not use a fully qualified url and have the very highest level of certainty? One issue with a relative redirect target that I would be concerned about, for example, is the potential for accidently creating canonical issues for the target domain somewhere down the line.

sublime1

1:32 pm on Feb 23, 2007 (gmt 0)

10+ Year Member



Why not use a fully qualified url and have the very highest level of certainty?

My paranoia kicked in and this is how we went :-) (It was a little more difficult to do it that way, which is why I asked).

Thanks Tedster

g1smd

6:37 pm on Feb 24, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Always use a server header check program to ensure that the correct code is being returned.