tags:

views:

557

answers:

5

Do search engines care if I use relative paths in my internal links instead of absolute paths?

<a href="/">My site root</a>
<a href="http://mysite.com/"&gt;My site root</a>
+1  A: 

Search engine bots only care that your URLs resolve.

rick schott
+1  A: 

Normally, not.

They however advice to include the <base> tag into your HTML HEAD document to indicate the host name to which relative urls should be appended to.

For example, that is what Google says on the use of canonical:

Can the link be relative or absolute?

The rel="canonical" attribute can be used with relative or absolute links, but we recommend using absolute links to minimize potential confusion or difficulties. If your document specifies a base link, any relative links will be relative to that base link.

About rel="canonical"

One more discussion on the topic: SEO & Internal Interlinking: Relative vs Absolute URLs

If you read through multiple discussions on the matter, you will see that some people think this way, other people think the other way but most do not have any proof to support one or the other theory.

Developer Art
"They however advice to include the <base> tag..." - citation?
RichieHindle
+1  A: 

I blogged about it sometime ago: http://nirlevy.blogspot.com/2008/07/absolute-vs-relative-urls-and-seo.html

in short: It should not matter, but some people say it does.

Nir Levy
+1  A: 

The beauty of SEO is nobody knows for sure since search engines like to keep things secret.

For this one though it's almost sure that it makes no difference whatsoever.

allesklar
+1  A: 

Here's what Matt Cutts from Google said:

" I recommend absolute links instead of relative links, because there's less chance for a spider (not just Google, but any spider) to get confused"

EP Interactive