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. On-Page / Site Optimization
    4. Absolute vs relative urls

    Absolute vs relative urls

    On-Page / Site Optimization
    7 6 3.2k
    • 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.
    • LinenMe
      LinenMe last edited by

      Hello,

      Should absolute or relative urls to be used for the internal links? I heard mixed opinions on that:

      • One source claims that web crawlers prefer absolute urls as they are more understandable
      • Other source points that there is no difference for web crawlers what urls are used and relative urls are shorter which reduces the size of a page.

      Which option is recommended?

      Many thanks

      Darius

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

        Take a look at this thread: http://www.seomoz.org/q/disadvantages-advantages-for-this-e-commerce-url-structure

        1 Reply Last reply Reply Quote 1
        • MaryAnneG
          MaryAnneG last edited by

          Years ago, the performance advantage of relative urls made them the better choice.  These days, that's not a major issue.

          One advantage to absolute urls:  If your content gets scraped there's a chance that they won't bother looking at the links, so any traffic they pick up will be directed back to YOUR site instead of to another page on the scraper's site.

          (Also makes it easier to find the thieves...)

          1 Reply Last reply Reply Quote 2
          • Tom-Anthony
            Tom-Anthony last edited by

            From a crawler point of view, I don't believe there is any difference. However, MaryAnneG makes a good point about scrapers. The downside of absolute URLs is they are harder to maintain, especially if you move to a new domain or change the structure of your site.

            1 Reply Last reply Reply Quote 1
            • Getz.pro
              Getz.pro last edited by

              What is important is that you remain consistent. Also, I like absolute when pages use rewrite rules, URLs can get broke.

              Personally, I always use absolute.

              LinenMe 1 Reply Last reply Reply Quote 1
              • LinenMe
                LinenMe @Getz.pro last edited by

                Thanks for all the answers!

                Now will have to evaluate all the pros and cons and make the decision. Good point that it has to be consistent

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

                  I agree that there's no longer any difference to the crawlers. However, one other thing worthy of consideration is the possibility of moving the site to a new URL. With relative URLs, you may be saved a lot of painstaking work, whereas with absolutes, every single page will have to be rewritten. There are tools to assist in the task, but it's still a lousy job to undertake.

                  1 Reply Last reply Reply Quote 1
                  • 1 / 1
                  • First post
                    Last post
                  • Is it better to shorten my existing url to use only keyword after domain with a 301 redirect from existing url
                    mrkingsley
                    mrkingsley
                    2
                    12
                    96

                  • Separate URL vs iFrame
                    AliMac26
                    AliMac26
                    0
                    3
                    179

                  • Duplicate URL errors when URL's are unique
                    DirkC
                    DirkC
                    0
                    2
                    96

                  • Rel=canonical vs noindex/follow - tabs with individual URLs
                    CleverPhD
                    CleverPhD
                    0
                    6
                    1.1k

                  • URL SEO: Better directory structure vs. exact keyword phrase
                    WilliamKammer
                    WilliamKammer
                    0
                    2
                    1.5k

                  • Brand Name URL Redirecting to Actual URL
                    iung
                    iung
                    1
                    8
                    524

                  • Google VS Yahoo VS Bing & Onpage Optimization in 2011
                    Dan-Petrovic
                    Dan-Petrovic
                    0
                    4
                    1.2k

                  • Absolute URLs
                    andresgmontero
                    andresgmontero
                    0
                    6
                    1.5k

                  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