Per Standard , RFC 2616, "The value of the [Location] field consists of a single absolute URI." Using a relative URI in any "Location:" header (301 or otherwise) violates the standard and puts you at the mercy of strangers - authors of browsers, spiders, etc. It's much easier, safer, and more reliable to follow the standard — always use absolute URIs in the headers of your location!
Alex martelli
source share