Welcome to WebmasterWorld Guest from 174.129.151.95

Forum Moderators: brotherhood of lan & mack

Message Too Old, No Replies

absolute links

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

5+ Year Member



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 Jul 15, 2012 (gmt 0)

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



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 Jul 15, 2012 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member



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 Jul 15, 2012 (gmt 0)

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



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

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



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.