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. Technical SEO Issues
    4. 301 redirect relative or absolute path?

    301 redirect relative or absolute path?

    Technical SEO Issues
    7 3 22.6k
    • 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.
    • Silviu
      Silviu last edited by

      Hello everyone,

      Recently we've changed the URL structure on our website, and of course we had to 301 redirect the old urls to the coresponding new ones.

      The way the technical guys did this is:

      "http://www.domain.com/old-url.html" 301 redirect to "/new-url.html"
      meaning as a relative redirect path, not an absolute one like this:
      "http://www.domain.com/old-url.html" 301 redirect to "http://www.domain.com/new-url.html"

      This happened for few thousands urls, and the fact is the organic traffic dropped for those pages after this change. (no other changes were made on these pages and the new urls are as seo friendly as possible, A grade on On-Page Grader).

      The question is: does the relative redirect negatively affects seo, or it counts the same as an absolute path redirect?

      Thanks,
      S.

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

        Hi Silviu

        There is always the possibility of some SEO value being lost when you implement a 301 redirection so that may be why you have seen a hit.

        Have a look at Moz's information on this here...

        Note this paragraph: A 301 redirect is a permanent redirect which passes between 90-99% of link juice (ranking power) to the redirected page. 301 refers to the HTTP status code for this type of redirect. In most instances, the 301 redirect is the best method for implementing redirects on a website.

        One thing though, I have never seen relative redirection for the same domain written as "http://www.domain.com/old-url.html" 301 redirect to "/new-url.html" but always as "/old-url.html" 301 redirect to "http://www.domain.com//new-url.html". I'm not saying the other way wouldn't work - which if the links are working correctly when you follow them they clearly are - but just not seen that.

        I hope the above helps,
        Peter

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

          301 Redirects should always be programmed and thought of us relative to full path.

          in htaccess, it should look like this:

          redirect 301 /old-page-name.html http://www.full-website-name.com/new-page-name.html
          redirect 301 /old-page-name2.html http://www.full-website-name.com/new-page-name2.html

          and so on and so forth..

          Which pages lost traffic - old ones or new ones? If you could send an example (or email it if you're willing) id be happy to take a peak.

          Silviu 1 Reply Last reply Reply Quote 0
          • Silviu
            Silviu @AriNahmani last edited by

            Thank you for the tip Ari, but our website is not using apache and htaccess, so the rules are written in another language, but I'm sure this is not important.

            The http status of the old urls is 301 to the new relative paths /new-url.html
            and this is where my problem is:
            Should the destination url (the new one) be relative or absolute?

            Silviu

            AriNahmani crackingmedia 2 Replies Last reply Reply Quote 0
            • AriNahmani
              AriNahmani @Silviu last edited by

              the destination URL should 100% be absolute!

              Silviu 1 Reply Last reply Reply Quote 1
              • crackingmedia
                crackingmedia @Silviu last edited by

                Hi Silviu

                It is as Ari said - source URL is relative and destination URL is absolute.

                Peter

                1 Reply Last reply Reply Quote 1
                • Silviu
                  Silviu @AriNahmani last edited by

                  Thanks Ari!

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post
                  • To 301 or not to 301?
                    iHasco
                    iHasco
                    1
                    4
                    70

                  • 301 Redirects
                    TheeDigital
                    TheeDigital
                    0
                    3
                    258

                  • To 301 redirect or not...
                    Immanuel
                    Immanuel
                    0
                    7
                    147

                  • Redirect a 301 Redirect
                    RedCaffeine
                    RedCaffeine
                    0
                    5
                    98

                  • 301 redirects reverting to 302 redirects
                    Devanur-Rafi
                    Devanur-Rafi
                    0
                    6
                    532

                  • Google Webmaster redirect vs 301 redirect
                    lavellester
                    lavellester
                    0
                    2
                    493

                  • 301 Redirects
                    KT684
                    KT684
                    0
                    5
                    711

                  • 301 redirect
                    Jeepster
                    Jeepster
                    0
                    18
                    2.7k

                  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