SEO & Internal Interlinking: Relative vs Absolute URLs

SMS Text

To some SEO questions there are no definitive answers unfortunately. Using absolute or relative URLs to interlink related site subpages is just such a question.

Many SEOs will tell you there is no difference and the main thing is to be consistent with your choice. Others (they seem to be in majority) support absolute URLs, while web developers and designers consider it stupid and irrational.

I did my best to make up the list of all possible pros and cons and leave that for you to decide:

Absolute URLs for internal interlinking:

Example: < a href=”″>About SEJ < /a>

  • are better when handling canonicalization issues;
  • are safer when talking about site hijacking;
  • are safer when switching to a new CMS;
  • will save you in cases when your content is stolen and the thief does not take time changing the internal references;
  • are a better choice if your content is distributed via email (you do want your readers to click the internal links and actually get to the page, don’t you?);
  • might be easier for search engines to follow as they resolve all relative URLs to absolute ones before following them.

Relative URLs for internal interlinking:

(First, a short definition of a relative URL)

URL whose location is specified relative to the address of the base document in which the URL resides. It provides a shorthand way to refer to files or resources that use the same protocol, domain name, or directory path as the current document. (source)

Example: < a href=”/about-us/4070″>About SEJ < /a>

  • make it easy to move from one domain to another one;
  • make the code shorter which might decrease a page’s download time.

Also please add your pros/cons in the comments.

Ann Smarty

Ann Smarty

Brand amd Community Manager at Internet Marketing Ninjas
Ann Smarty is the blogger and community manager at Internet Marketing Ninjas. Ann's expertise in blogging and tools serve as a base for her writing,... Read Full Bio
Ann Smarty
Get the latest news from Search Engine Journal!
We value your privacy! See our policy here.
  • Mercy

    If you would like your images to show in RSS you need to have absolute URLs rather than relative URLs. I personally prefer absolute URLs.

  • Raghavan

    how about tag and using relative URL?

  • Web Agency Chieti

    I don’t agree with you. There no absolute difference in term of seoing using an absolute or relative url.
    Simply the search engine get it from the remote-host param that every web server release during the navigation.
    In term of design, instead, the big difference is that testing a web site with relative url is easier since you can do it locally.

    Apart from this, Ann I’m pretty curios to understand in whych way an absolute url can prevent material theft. Could you elaborate this?


  • Ann Smarty


    “There no absolute difference in term of seoing using an absolute or relative url.”

    And that’s why I used “might” in the sentence, I am not insisting on that – just outing other people’s opinion.

    “testing a web site with relative url is easier since you can do it locally”

    That’s an excellent point, thank you! I wonder why it didn’t occur to me.

    “in which way an absolute url can prevent material theft”

    I guess you are referring to this point: “when your content is stolen …” – it often happens that the thief forgets to remove in-text post interlinking – so when using absolute URL you get minor deep backlinks from the thief’s site.

    Thank you for the great comment and valuable additions!

  • DG

    I don’t think there’s any difference in terms of SEO, and it’s better to use Absolute URLs over Relative. If you’re not planning to change your site structure or domain.

  • Raghavan

    How about using the base tag and using relative URL?

  • Stephen T

    Yes the <base> tag is another thing to consider. This is where you use a tag in the head of the page to say where all relative URLs start. For example putting

    <base url=””>

    in the <head> tag and then using a relative URL in an anchor

    <a href=”june/2008/mypage.html”>a page</a>

    would resolve to the URL

    The use of the <base> tag is popular when using mod_rewrite to create search-friend URLs. For example the URL above could actually be a re-write to

    The advantage of using the <base> tag here is that you can use an arbitrary directory structure determined by your SE-friendly URL structrue but still allow relative URLs to work. The question is, does this make any difference in terms of SEO? As far as I know, the major spiders seem to respect the <base> tag but if they didn’t then URLs would not resolve properly.

  • Raghavan


    Thanks for sharing. My question is also the same that using this tag does it make any difference in terms of SEO?

  • Web Agency Chieti


    “it often happens that the thief forgets to remove in-text post interlinking”

    He sounds like a stupid thief 🙂

  • Web Agency Chieti


    you mean a tag for every url, that will be parsed by a server-side script language, or something different?
    I don’t use php, so it’s just partially clear what you have said.

  • Raghavan

    Its an HTML tag and used before the end of head tag. You define the base tag initially and your relative URLs will be treated as absolute.

  • Ann Smarty


    lol… you might be surprised to hear how often that actually happens 🙂

  • Web Agency Chieti


    sometimes I continue to amaze myself for centain things 😀


    could you make me an example, please? This is new for me

  • Wil Reynolds

    Ann, I had someone copy everything including the web tracking code, one day the clients traffic was up 300x – sometimes you would be absolutely amazed, agreed.

  • Richard Burckhardt

    I’m a firm believer in using absolute URLs whenever possible and blogged about this myself a few months ago in a post titled “Absolute URLs? Absolutely!” that you can get to by clicking on my name above.

    Absolute URLs can make life so much easier when dealing with https pages and even scrapers. For instance, if your content gets scraped, those absolute URLs get scraped with it so you at least get links back to your site.

    I have even caught careless content thieves who tried to post my articles under their own names when they *thought* they had removed URLs from the articles but left the “a href=” code in by mistake. WordPress and Google Alerts notify me of new links so that I can pounce on them.

    What can I say? I love absolute links. Unless there is a very good reason to use relative links, they are mandatory for me.

  • Raghavan


    I’m not able to post comments with tags there seems to be some filter. Just Google it and you can get it else skype: raghavan8in I can help you out

  • David

    I always use the full URL. I don’t think the old arguments for relative linking are that important anymore.

  • Catfish SEO

    Absolute URLs are safer in terms of elimiating potential duplicate content issues. However, for a lot of sites its impossible to code using absolute URLs because that would break their staging environment. We have configured our CMS system to use relative URLs in the staging environment and then convert to absolute when the site is published to the Web.

  • Richard V. Burckhardt

    Catfish –

    Sounds like a good solution. The company I am working with had similar issues. They want relative URLs in their development and staging environments. Problem is, they’d move it over to the live site and get spidered in both http and https, so the search engines saw two sites. All it takes is one https link.

    After several attempts at fixing this through templates, they put their development team to work on a way to identify the https links and redirect them to the http version of the page.

    So, if you have the resources, there are definitely ways to work with relative links. For the rest of us, though, absolute links are still the best route to avoid headaches.

  • Ashwin Ramesh


    Taking the Search Marketing into the focus and perspective, definitely absolute > relative.

    Not just because we’re giving more details to the search engines with absolute url’s, but also because its a whole lot more effective when it comes to garnering natural links and also effectively doing better in the SERPs.

    I’ve had quite a few curious expeditions where I tested out to see whether absolute URLs seem to have an edge over relative URLs and my conclusions were that, if I want my client to have a very well SEO’d site, i’d rather go for absolute linking structure.

    So, it finally boils down to the question of whether you want to worry about faster page load time or you want to worry about better SERPs and usability.

  • SEM- India

    Absolute URL are good to use, it will definately solve the url cononicalization issue.

    but most of CMS, web2.0 sites and cms uses relative URL, i did not seen any harm on their ranking or seo?

  • Web Agency Chieti

    I don’t use skype at all. Send me an e-mail at andrea . moro (dot) webma (at)

    Thanks for your clarification. I certainly don’t avoid absolute url linking. In most web page I use them, especially for high-value links or very important pages.
    But as I said I prefer relative for off-line testing, and actually I’m able to get results anyway.


  • SEO Findability

    I think most SEO Experts would prefer Absolute, because why should you make it the SERP mopre difficult by using relative.
    Most important is to use the same URL’s internal as external and use clean URL”s.

  • Jim

    Question: Is there any difference in using the base tag vs. using relative URLs? Would search engines see them differently?

    Good post Ann!

  • Richard Burckhardt

    No, but if your content got scraped, you’d lose any backlinks (for whatever they’d be worth) because the links would be relative since the base tag would be missing.

  • CT Moore

    In regards to the whole divide between SEOs and developers/programmers, that seems to be symptomatic of a more pervasive split between techies and marketers in general.

  • MikeBradbury

    Why don’t you just use a .config file to set a variable called , and then set that equal to the domain?

    If you set the URL in a .config file on the server side, you can use a placeholder in your pages like /rest-of-url.php (I believe Joomla does this)

    You can set the for your development site as well as the live site, you get absolute URLs all over the site, and the search engine is none the wiser.


  • MikeBradbury

    A few words were eliminate because I formated them like html tags. I am a moron.

    Basically, set a baseurl in a universal .config file and then call it when you write your pages on the server side.

  • Dawn Siemer

    One reason to use absolute URLs nobody else mentioned is for copywriting purposes. I often copy/paste code from webpages for newsletters, new pages, and online submission forms. Having an absolute URL re-assures me that I won’t be breaking any links by doing so.

  • Matt Hopkins

    So I guess nobody uses log file based analytics anymore then? Cos if they did then they would point out that using absolute URLs screws up the analytics enromously as your visits will only have 1 page view and all your referrers will be your own site.

  • Oscar Meneses

    If you use a scripting language on your site like PHP, you can set a constant variable with your domain name ( and then call the variable in front of every link you’re going to make. That way you would have absolute URLs and when you change domains or are in testing mode you can change the value in only one place. And to get relative URLs you would assign a blank value to the variable.

  • Richard Burckhard

    Oscar –

    Very nice suggestion. Thanks!

  • Nir Levy

    i’ve also blogged abit about this issue. I always do my best to use relative urls. They are cleaner, easier to understand, can be staged and more. As a developer i would consider this a bug in the crawler if it gave better ranking to an absolute url then a relative one.
    Also, i believe that since relative urls are shorter your pages will preform better SEO wise: if you have a top or left menu of 30 items, for example, and your domain name is you will add over 1kb to the top of the html of your page. that makes your real content 1kb further down the page which makes the search engine give it lower rank (or so i’m told).

  • Asif Anwar

    I have experimented with absolute URLs of new sites and seen the rank fall. However, this was just for one case. I need further proof. There are probability that when Google finds http:// in href=””, it treats it as external link even though it is internal. The link juice for external links should be different than internal links, don’t you agree?

  • Ann Smarty

    @Asif, I really don’t think Google differentiates between absolute and relative internal URLs – that would be a serious bug. Per my experience, there’s no difference.

  • Asif Anwar

    Hi Ann,

    I am also an Absolute supporter like Richrad. but, I have faced it twice and have been able to recover in one. And in both situation, the common thing I tried out was absolute URL. I need futher testing to diagnose what happened.


  • Drupal websites

    I use Drupal for building websites. The SEO adviser of a client advised to go for absolute URL’s if posible, but could not explain it other than “just to be sure”. Talkin about CMS’s, WYSIWYG editors and SSL secured pages, I can tell you implementing absolute URL’s can be very tricky and error prone if the CMS (Drupal in this case) is not ready for it.

  • Peak Web Marketing

    I voted for absolute URL, but considering the usability and download time, I would use the absolute URL link for logo images.

  • stacey huxley

    I doubt there is any difference. In our experience there has been no proof to make us believe any additional ranking performance for one over the other.

    The quality of content, well structured site and decent inbound links with relevant content seem to be more important.

    It does not seem to hurt having your targetted keywords in the url either. But this is certainly by no means a killer SEO move. 😉

  • Pushpendra

    Absolute links are always better choice for SEO Point of View,check out the article written by one of member of webmasters team of bing for SEO Purpose.

    I hope it should put an end to discussion for bing search.Regarding google and yahoo search we are still in dark.

  • Mohammed Rhalmi

    I’ve used absolute links for some links (php variables, images ….) recently and I ve seen my traffic rank falling. Is it due to this change? Does google interpret internal absolute links as some sort of attempt to trick the engine? Or may be my traffic rank is just falling for other reasons?

  • John Doherty

    I am a web developer and have tried both approaches over multiple projects. I prefer relative URL’s and set the base tag in the page header, easier to work with and it keeps the page weight down.

    I agree with Ann, Google’s bot is smart enough to resolve the URL and treats both Relative and Absolute URLs the same.

    Its more about usability that SEO. All content on the web should be optimised for download speed and Absolute URLs add nothing but unnecessary bloat to your mark-up. Apparently, Google will use page speed as ranking factor in 2010 so this should also be considered.

    Regarding HTTPS, if your not using it do a 301 redirect to HTTP just to keep things clean.

  • Mike Behnken

    In these days where content scraping is so prevelent, I chose to use absolute URLs so when a scraper takes an article with haste the links will still point back to my site.

  • Adam

    This article’s comments actually helped me decide whether or not to continue using absolute URL’s. As a developer, I’m thinking about page load time. On the other hand, for RSS feeds, HTTPS, and those dumb site thieves, “absolute URL’s” are definitely better. Thanks for the article!