Thread: Internal Links
View Single Post
  #10 (permalink)  
Old 04-24-2008, 05:27 PM
Peter (IMC)'s Avatar
Peter (IMC) Peter (IMC) is offline
WebProWorld 1,000+ Club
WebProWorld MVP
 

Join Date: Dec 2003
Posts: 1,456
Peter (IMC) RepRank 4Peter (IMC) RepRank 4Peter (IMC) RepRank 4
Default Re: Internal Links

Quote:
Originally Posted by seiretto View Post
Peter,

You got me thinking about this in case I was wrong.... so I checked your code on default Apache and IIS web servers and it results in 404 errors, unless you used for example "/index.html" in a sub-folder then this links to the parent folder! NOT the required outcome at all. And Xenu would not see this as an error, but would result in the use of keywords linking to irrelevant content.

Anyhow, if we go back to the actual topic if relates to relative or absolute links.

As I said according Google Googlebot prefers absolute links:
URLs not followed

Absolute links are defined as:
http://www.my--company.com/one.html#anchor-one
And relative as:
./one.html#anchor-one or one.html#anchor-one
see the middle of this page:
Links in HTML documents

So to conclude it is best practice to use absolute links in the form of:
Code:
<a title="this page is about..." href="http://www.the--domain.com/folder-name/file-name.html">Relevant words linking to page</a>
Anyone else concur, or disagree....
The only thing I can conclude from your tests is that you forgot to add http:// to those links that include the domain name.

/

/google-discussion-forum/68651-internal-links.html

These links work just fine, don't they?
Reply With Quote