Forum Moderators: open
I have a lot of internal links on my pages, the original page making software always included the full address, ie "http://www.sitename.com/filename.html"
But now that I am tidying the pages up by hand, I am wondering do I really need the "http://www.sitename.com/" bit, since "filename.html" works just as well and saves some space.
Is there a rule that you should use the full address, or the relative address or does it not matter?
Full links might make it easier for search engines to find your other pages too.
A lot of us put the statement:
<BASE href="http://www.yoursite.com/"> right after the
<title yadda yadda> statement.
There are other benefits for that, see 302 redirect hijacking threads.
I use BOTH <BASE href, and full http:// links.
All my outgoing links are full http:// too.
I think I should let others chime in at this point. -Larry
Nothing stops piracy, but full links discourage it
a little, at least the dumber lazier pirates
That's why I make sure I lock my car doors, even if I decide to leave it unattended with the windows wide open on a hot day. At least the dumber, lazier thieves might see that it's locked and not bother! ;)
Full links might make it easier for search engines to find your other pages too.
I seriously (this time!) doubt it -- I don't know any search engine whose spider has any trouble following relative links to explore full sites. (In light of the widespread use of relative links, any SE that couldn't follow them would miss a lot and be at quite a competitive disadvantage.)
I was under the impression this was a better method of linking. I forget why (I think it was something to do with calls to the server being reduced) but have gotten into the habbit of doing it now.
But why anyone should want to copy my pages
The few extra bytes you add to a page because you included the full reference is not worth worrying about. The argument for spiders can fall either way. Spiders will find your pages, that's what they do. I sleep a little easier knowing I gave the spider a full reference, and that my visitors will land on the page I created for them - no questions asked.
Make sure you redirect non-www to www using a 301 redirect, to avoid serving duplicate content under multiple URLs.
If you link to an index page inside a folder, do not include the filename of the index file. Simply end the link with the folder name followed by a trailing / on it:
http://www.domain.com/folder/ or just /folder/