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. Intermediate & Advanced SEO
    4. Relative paths vs absolute paths for links - is there a difference?

    Relative paths vs absolute paths for links - is there a difference?

    Intermediate & Advanced SEO
    6 5 4.0k
    • 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.
    • cdolek
      cdolek last edited by

      Is it better to use links like:

      some link

      VS

      some link

      is there a difference for the search engine algorithms?

      Thanks.

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

        Hi Cenk,

        Yes, it is better to use relative paths when linking on your site to your internal pages. This reduces the number of server calls on a page and can increase your page speed and efficiency. Now, does that factor specifically factor into algorithm? I don't know. But page speed is part of the algorthm, so I suppose you could say that indirectly it does have an effect on algorithms and how your site potentially ranks.

        One caveat: Use absolute URLs for your canonical tags. Search engines have problems interpreting relative URLs when they are in a canonical tag. I learned this the hard way!

        Hope that helps!

        Dana

        cdolek KeriMorgret 2 Replies Last reply Reply Quote 3
        • cdolek
          cdolek @danatanseo last edited by

          Thank you for the invaluable information 🙂

          1 Reply Last reply Reply Quote 0
          • KeriMorgret
            KeriMorgret @danatanseo last edited by

            However, if you use absolute URLs, if your content gets ripped off you have links back to your own content now, and people can know it's your content. It can also help to force http or https.

            Gamer07 1 Reply Last reply Reply Quote 1
            • Gamer07
              Gamer07 @KeriMorgret last edited by

              Well, if we go like that. Wouldn't it also involve a risk of negative SEO? A site who rips content from another is more likely to be considered a spam site. (linking to your site now)

              1 Reply Last reply Reply Quote 0
              • Cyrus-Shepard
                Cyrus-Shepard last edited by

                I almost always use absolute URLs. Dana has a point about efficiency, and a lot of developers HATE writing anything but relative URLs, but I think most modern servers can handle the load just fine, and developers can be bribed with cookies.

                The advantage of Absolute URLs is they're less likely to break with various CMS's (content management systems) and on-page elements. I've seen javascript do some crazy things to relative URLs causing 1000's of broken, uncrawlable links.

                And when your content is scraped, either for black hat reasons or perfectly legitimate reasons like embedded RSS feeds, then you get full credit for the link. But to be fair, and to recognize Gamer07's point, Google likely devalues most of these links anyway once they detect the duplicate content.

                1 Reply Last reply Reply Quote 3
                • 1 / 1
                • First post
                  Last post
                • URL structure - Page Path vs No Page Path
                  Roman-Delcarmen
                  Roman-Delcarmen
                  0
                  5
                  277

                • Base href + relative link href for canonical link
                  DmitriiK
                  DmitriiK
                  0
                  2
                  419

                • Same page Anchor Links vs Internal Link (Cannibalisation)
                  Andy.Drinkwater
                  Andy.Drinkwater
                  0
                  4
                  437

                • Redirect aspx files to a different path structure on a different domain using a different server-side language?
                  hamackey
                  hamackey
                  0
                  3
                  323

                • Outbound link to PDF vs outbound link to page
                  underscorelive
                  underscorelive
                  0
                  3
                  233

                • One Way Links vs Two Way Links
                  irvingw
                  irvingw
                  0
                  4
                  3.4k

                • Is there an optimal ratio of external links to a page vs internal links originating at that page ?
                  EGOL
                  EGOL
                  0
                  2
                  1.3k

                • Link Architecture - Xenu Link Sleuth Vs Manual Observation Confusion
                  scanlin
                  scanlin
                  0
                  4
                  1.2k

                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