The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Web Design
    4. Relative or Absolute???

    Relative or Absolute???

    Web Design
    2 2 350
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Mike.Bean
      Mike.Bean last edited by

      https://moz.com/learn/seo/internal-link
      https://moz.com/blog/relative-vs-absolute-urls-whiteboard-friday

      I have read both articles above, however further reading the comments that followed, it appears that neither provided an answer. Some said Absolute and some were determined that Relative linking is the only way to go. There were heated comments, apologetic comments and mostly comments agreeing to disagree.

      But in the end I think what I got out of it was there are two sides to developing a site.

      Side A:             Web Developer Standpoint, Relative (easier)

      Side B:             SEO Standpoint, Absolute (harder)

      To me Side B puts money in the bank, so I will go with B.

      Now since we’ve been dealt the recent https algo, there seem to more opinions that are thrown into the question. All I’m asking for is a straight answer so our employees can feel confident that our efforts are not in loss. I also want to ask about how images should be linked internally.

      NOTE: Our sites are not all https but have SSL’s in place, and 301 redirects reflect http versions of pages.

      So since it appears Absolute linking is the preferred method, I ask which is the best option or an option at all.

      Internal Navigation:

      Current internal link - /store/pc/Rollators-c379.htm

      Absolute Options

      http://www.company.com/store/pc/Rollators-c379.htm (what I see for most Absolute links)
      www.company.com/store/pc/Rollators-c379.htm (would this work for both http and https?)
      //www.company.com/store/pc/Rollators-c379.htm (would this work for both http and https?)

      All three links above resolve to www.company.com/store/pc/Rollators-c379.htm with no http:// in front. If I type https://www.company.com/store/pc/Rollators-c379.htm in the url it resolves to https://www.company.com/store/pc/Rollators-c379.htm with the https:// in front.

      Internal Images:

      If I want my images to be indexed as well as pages should I be using Absolute links for them as well?

      Current internal image link - /store/pc/images/rollators.jpg

      Absolute Options

      http://www.company.com/store/pc/images/rollators.jpg (what I see for most Absolute links)
      www.company.com/store/pc/images/rollators.jpg (would this work for both http and https?)
      //www.company.com/store/pc/images/rollators.jpg (would this work for both http and https?)

      Just once I would like an answer that’s not:
      It depends on the site or it doesn’t matter which method you use, they both work lol.

      I would like one that says google likes this better.

      Thanks for taking the time to help us understand and can’t wait for MOZ Con this September.

      1 Reply Last reply Reply Quote 0
      • LynnPatchett
        LynnPatchett last edited by

        Hi Mike,

        I think you might get a lot of different opinions again (just like in Ruth's WBF comments) but I think it is pretty safe to say that Google likes sites that are consistent and clear in their internal linking and that do not return a bunch of 404 pages due to bad linking structure or linking mistakes.

        So with this in mind the first thing to do is decide what your final url structure is going to be. Is it https or http? is it with www on non www?

        Once this is decided then really 95% of any potential troubles should be solvable with a few lines of code in your htaccess file which will 301 any queries to urls that are not in the final format you have decided on to that format. This means that if you have decided on https and non www then even if google (or any user) comes into the site on a http or www url then the redirect takes them to the https:// version and everything else that is crawled from then should be in the format you have decided on. So far so good.

        There are two main issues where you might still have problems and this is likely where different opinions will appear as to which problem is more likely to happen and/or be more difficult to fix.

        Problem 1: Bad implementation of internal relative linking
        The comments on Ruth's post about spider traps due to missing the / at the beginning of relative urls (and lots of other weird relative url formatting mistakes) happens quite often and on larger sites can seriously damage your crawl budget by creating literally thousands of bad links to 404 pages. This is bad news! There are ways to address this either using a base href tag or simply by editing the relevant links. The moz crawl report will flag these kind of issues so you will find out pretty quickly if you have this kind of problem.

        Problem 2: Having to manually edit absolute urls because you have decided on changing the final url structure of your site.
        You mention you have a ssl certificate in place but are not using https at the moment. It is probably safe to assume you will be at some point in the future though I would assume? If so, how many man hours are you willing to dedicate to editing all your absolute http urls to https urls if you decide to do this change? Maybe your tech team can do this by editing urls directly in the database and this is not a big issue for you (although these kind of actions need special care to make sure mistakes do not creep in) - if so then this might not be a big issue for you and in that case feel free to use absolute urls and feel good about it!

        The above is relevant for images as well as for pages. At the end of the day google wants to be able to crawl your site easily and to find real content/images and not 404 errors all over the place. If you ensure this it doesn't matter much if you are using absolute or relative urls (I guess I better say in my opinion) - you are returning the same content on the same urls in both cases so really why would google care?
        if it is easy to put absolute urls in the main menu then do it. If it is a nightmare to edit 1000's of relative urls in product descriptions then just make sure they return valid urls and you should be fine.

        A note on your url examples:
        http://www.company.com/store/pc/Rollators-c379.htm (what I see for most Absolute links)
        www.company.com/store/pc/Rollators-c379.htm (would this work for both http and https?)
        //www.company.com/store/pc/Rollators-c379.htm (would this work for both http and https?)

        Only the first of those is an absolute url, the second and third are relative urls of one sort or another and are likely to cause you lots of problems. Either use absolute urls with full https or http, or use relative urls with a trailing / (and make sure you do not have spider traps). Do not use those other examples, they will cause you grief! Hope it helps, I am sure others will chime in 🙂

        1 Reply Last reply Reply Quote 1
        • 1 / 1
        • First post
          Last post
        • How can I check spam score and non indexed links
          seopack.org2456
          seopack.org2456
          1
          2
          26

        • How effective the site is on SEO
          omidmada2a
          omidmada2a
          0
          5
          65

        • Migration from HTML to Wordpress - SEO Implications?
          Adlanera
          Adlanera
          0
          10
          1.0k

        • Can anybody recommend a good UK based SEO
          Adlanera
          Adlanera
          0
          16
          271

        • What is the longest you would go back to ressurrect links that should have been 301's?
          Linda-Vassily
          Linda-Vassily
          1
          19
          169

        • SEO Audit for site redesign
          LesleyPaone
          LesleyPaone
          1
          27
          580

        • Entering different but related industry, keep it on the same domain or new domain?
          StoresDirect
          StoresDirect
          0
          2
          628

        • ?3dCart, Magento, Volusion, Zen Cart? Looking for recommendations based on my situation.
          Njnbiure45r4
          Njnbiure45r4
          0
          26
          5.4k

        Get started with Moz Pro!

        Unlock the power of advanced SEO tools and data-driven insights.

        Start my free trial
        Products
        • Moz Pro
        • Moz Local
        • Moz API
        • Moz Data
        • STAT
        • Product Updates
        Moz Solutions
        • SMB Solutions
        • Agency Solutions
        • Enterprise Solutions
        • Digital Marketers
        Free SEO Tools
        • Domain Authority Checker
        • Link Explorer
        • Keyword Explorer
        • Competitive Research
        • Brand Authority Checker
        • Local Citation Checker
        • MozBar Extension
        • MozCast
        Resources
        • Blog
        • SEO Learning Center
        • Help Hub
        • Beginner's Guide to SEO
        • How-to Guides
        • Moz Academy
        • API Docs
        About Moz
        • About
        • Team
        • Careers
        • Contact
        Why Moz
        • Case Studies
        • Testimonials
        Get Involved
        • Become an Affiliate
        • MozCon
        • Webinars
        • Practical Marketer Series
        • MozPod
        Connect with us

        Contact the Help team

        Join our newsletter
        Moz logo
        © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
        • Accessibility
        • Terms of Use
        • Privacy