Forum Moderators: open
WITHIN my site, meaning a link from one _page_ to another, I give the full URL.
That is, "http://mysite.net/targetpage.html"
I do likewise with outbound links to other sites.
I use short (relative?) links only for images, e.g. "graphics.gif"
That's only because its easier to debug pages before I send them up to the host.
Unless I'm wrong in this, a link from page A to page B (both on your site) is WASTED
with a relative URL because the Engines can't see the site, just some filename.
Maybe they have some algo to patch in the site for a full URL, but I wouldn't bank on that. - Larry
Coping with relative links is done for you in most programming languages. Spider authors have no excuses in getting it wrong.
[edited by: TheDoctor at 5:34 pm (utc) on Jan. 27, 2005]
Unless I'm wrong in this, a link from page A to page B (both on your site) is WASTED
with a relative URL because the Engines can't see the site, just some filename.
No, relative links work just fine with search engines. The problem with absolute links is that they cause a lot of duplication and editing overhead and that they might break when a page is moved. Nevertheless, some people swear by absolute links - I think it's to make it more difficult to hijack or hotlink their pages. These people recommend using search-and-replace tools to change absolute links.
My main motto is "Duplication Is Evil" so of course I recommend relative links. They are easier to maintain and reduce page sizes. In any case, relative links do not cause problems with the any of the major search engines.