I was reading a post from Performancing in Bloglines today. However, I when I tried to click on a link within the post to another page on Performancing, I got a "404 page not found" error. Why? Because they use root-relative URLs rather than absolute URLs for internal links on their site.
A root-relative URL is one that has all the usual path information in it, except for the site domain at the beginning - i.e. it starts at the root. Here's an example:
However, in Bloglines this URL reads as:
Hence, the 404 error.
It seems like this has been an issue for a while - back in 2003 Brainstorms & Raves wrote:
An exception where absolute URLs are required is within RSS feeds for which absolute URLs are currently still needed.
You'd have thought that this would have been fixed by now; apparently not. It may depend on which format you distribute your feed. I'd love to know more if anyone has additional information.
So, although the conventional wisdom is to use relative URLs for internal links within your site, bloggers may want to consider using absolute URLs to ensure that these links work in their RSS feeds.
Posted on: January 27, 2006 | 8 Comments