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 Redirects

    301 Redirects

    Technical SEO Issues
    5 3 87
    • 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.
    • BrandBuilder
      BrandBuilder last edited by

      Hello, All. Hopefully this will be an easy question for some of you.

      I have a (WordPress) site with the format of:

      http://www.site.com/folder-old/page-old/

      I have since re-named both the parent and sub-folders to (example):

      http://www.site.com/folder-new/page-new/

      Everything is working well EXCEPT I am also trying to redirect visitors from the old URL/structure to the new. I have a 301 redirect setup as the following:

      Redirect 301 /folder-old/page-old/ http://www.site.com/folder-new/page-new/

      --

      But it doesn't seem to be working. Not sure if this is something finicky with WordPress or if the redirect is incorrect. Thank you.

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

        Hey,

        Have you tried to use  "#Redirect 301 http://site.com/folder-old/page-old/ http://site.com/folder-new/page-new/"

        This should work out if you still face any issue try to do it with this plugin.

        Hope this helps!

        Umar

        BrandBuilder 1 Reply Last reply Reply Quote 0
        • BrandBuilder
          BrandBuilder @UmarKhan last edited by

          Thanks. Adding the "#" didn't work. I will try the plug-in. Thanks.

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

            Adding a # to the beginning of a line of code in the htaccess file will make it redundant, it is used for adding comments into the file.

            Try it without the # at the beginning but with both full URLs

            Redirect 301 http://site.com/folder-old/page-old/ http://site.com/folder-new/page-new/

            I always use 301 redirects without the full URLs and it works fine so try the below if the above doesn't work.

            Redirect 301 /folder-old/page-old/ /folder-new/page-new/

            BrandBuilder 1 Reply Last reply Reply Quote 0
            • BrandBuilder
              BrandBuilder @O2C last edited by

              Thanks for the feedback. I've tried both (full URL and no URL leading) and neither work. It seems to always redirect to the new "/folder-new/" but the old "/page-old/" no matter what.

              For example:

              Redirect 301 /folder-old/page-old/ /folder-new/page-new/

              results in:

              http:///www.site.com/folder-new/page-old/

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              • 301 Redirect
                WyzeOwl
                WyzeOwl
                0
                5
                89

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

              • 301 redirects
                vibelingo
                vibelingo
                0
                5
                255

              • Delete 301 redirected pages from server after redirect is in place?
                RuthBurrReedy
                RuthBurrReedy
                0
                5
                4.0k

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

              • 301 Redirects
                KT684
                KT684
                0
                5
                711

              • 301 Redirects
                rickdronkers
                rickdronkers
                0
                2
                937

              • 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