Welcome to WebmasterWorld Guest from 54.162.19.123

Forum Moderators: mack

Message Too Old, No Replies

absolute links

     
9:21 pm on Jul 14, 2012 (gmt 0)

Preferred Member

5+ Year Member

joined:Apr 29, 2008
posts: 624
votes: 0


Should internal links on my website be absolute links www.mydomainname.com instead of <href> or doesn't it matter for SEO ?
12:21 am on July 15, 2012 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member lucy24 is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month

joined:Apr 9, 2011
posts:13681
votes: 446


What do you mean by <href>? Links should be site-absolute:

<a href = "/directory/innerdirectory/page.html">

We can argue about whether relative links

<a href = "otherpage.html">

are appropriate when you have a group of pages that will always live in the same directory.

afaik search engines don't care, because they never follow a link directly. They translate it into a complete URL including protocol and domain, and put it on their shopping list for later.
8:38 pm on July 15, 2012 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:May 31, 2005
posts:1108
votes: 0


Even if you use your full domain name, you still need to use href's
eg. <a href="http://www.example.com/mypage.html">...</a>

I would back lucy's site-absolute links, which are the location on the page in relation to the root of the site.
8:50 pm on July 15, 2012 (gmt 0)

Senior Member

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:July 3, 2002
posts:18903
votes: 0


Start the link with a leading slash or with full protocol and hostname.
12:43 am on July 16, 2012 (gmt 0)

Moderator from US 

WebmasterWorld Administrator robert_charlton is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Nov 11, 2000
posts:11831
votes: 284


instead of <href>

This doesn't make any sense to me either. The syntax is always...

<a href="URL">

The href attribute is part of whatever kind of link you're considering.

The question to be discussed is how complete the url needs to be... ie, should you use absolute links or relative links... and, if you use relative links, what kind of relative links...

- root relative links, which begin with a forward slash
- or relative links that do not begin with a forward slash.

Here's an excellent thread in which tedster distinguishes among these....

Internal Linking - Better to Use Absolute or Relative Links?
http://www.webmasterworld.com/google/4186860.htm [webmasterworld.com]

In the same thread, phranque also cites a discussion about CainIV's test which suggests that absolute links may be better for SEO. The consensus has generally been that absolute links and root relative links are basically equal for SEO... but that relative links that aren't root relative should be avoided.

Also not clear in your post...
absolute links www.mydomainname.com

Note that links beginning with www are not absolute links, as they don't include the (http) protocol. I've seen some sites get into quite a bit of trouble using www at the start of an internal nav url, as this can look like the beginning of a relative link (of the kind that isn't root relative), which can create a very messy url.
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members