Forum Moderators: open
Using relative linking when changing directories:
When changing directories is it best to employ an absolute or fully qualified URL? For example, the URL would be http•//www.example.com/ and then remainder of URL.
The reason I heard was that SE spiders are NOT intelligent like web browsers. With relative URLS they tend to stop before proceeding onto a new directory. With absolute URLS they tend to stop only when they time out.
Anyone heard of this?
[edited by: caveman at 10:43 pm (utc) on Oct. 26, 2006]
[edit reason] delinked link [/edit]
It's really only a problem for badly coded or very complex sites...and even then, spotty.
BUT, hard coding (absolute) URL's is considered best practice, on the theory that better to be perfect than to risk small or greater losses in traffic. Can't really screw up absoluite URL's unless you have typo's.
Purists get mad at me though, when I say things like this.
;-)
Surely it is better for these people to just leave the site as is, as changing it after the whole site is already indexed would result in lost of serps for pages that had them?
Wouldn't server side redirects solve that?
Keep in mind that the topic of this thread is absolute vs relative URLs. Changing the code of a link from relative to absolute does not mean a change of URL or page location. It simply adds certainty that the link will be followed appropriately by the bots and site visitors, which is why as cabowabo suggests, SEO's tend to regard absolute URL's as best practice.