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 Issue

    301 Redirect Issue

    Technical SEO Issues
    7 3 987
    • 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.
    • EntrustSEO
      EntrustSEO last edited by

      I'm having an issue with 301 redirects:

      Let's see if I can verbalize my thoughts on this one...

      So we just recently moved our site to Wordpress. One of our new 301 commands is redirecting oursite.com/news to oursite.com/blog . However there are other links from our previous site that look like oursite.com/news/XYZ and the issue is that, because wordpress structures its links differently, that URL is not equivalent to oursite.com/blog/XYZ. Instead, it might look something more like oursite.com/blog/yaddayadda/XYZ or something. Does that make sense?

      The issue is that when I find an old link of ours on google that looks something like "oursite.com/news/XYZ" or "oursite.com/news/ABC" it is automatically replacing "news" with "blog". When I try to go in manually and redirect anything that says "/news/XYZ" to "/blog/yaddayadda/XYZ" it still doesn't work. It still just replaces "news" with "blog."

      Wow I realize that might not make sense to anyone but if it does - please advise!!

      Thanks!!!!

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

        It sounds like more of a permalink issue in wordpress than a redirect issue. Under settings on the left sidebar in your wordpress dashboard is a link called permalinks. Go there and let us know what it says there. You probably want a custom structure that says /%postname%/ so that your blog will make permalinks like site.com /blog/postname instead of site.com /blog/category/postname or whatever else might be going on there.

        Get the simple 301 redirect plugin and make sure you do redirect every old URL to its new counterpart, but make sure your new ones look the way you want first.

        EntrustSEO 1 Reply Last reply Reply Quote 0
        • EntrustSEO
          EntrustSEO @DanDeceuster last edited by

          Hey Daniel. Thanks for your response - the only problem is that we already have /%postname% selected. It is working for mostly every blog entry except this one that I'm running into problems with. I'll show you the exact URL that's giving us the problem.

          On google, it shows the URL as:

          oursite.com/news?tag=business-2

          Then it seems to be redirecting it to:

          oursite.com/blog?tag=business-2

          However, that site does not exist. It should be

          http://oursite.com/category/business

          I tried to literally 301 redirect both oursite.com/news?tag=business-2 and  http://oursite.com/category/business to  http://oursite.com/category/business but neither worked.

          Thoughts?

          DanDeceuster EntrustSEO 2 Replies Last reply Reply Quote 0
          • Tom-Anthony
            Tom-Anthony last edited by

            Hi!

            The problem you have is that you are using two different Apache extensions and I don't believe you can control the order the go in. You are using mod_alias and mod_rewrite.

            It sounds like you have a line like:

            Redirect permanent /news/dinosaur/ninja http://www.oursite.com/blog/ninja

            This is the mod_alias rule, and it is firing before your mod_rewrite rules (and then it no longer fits their criteria, so they don't fire).

            So, what you need to do is change your mod_alias rules into mod_rewrite rules, so then you can control the order (they execute top to bottom, so you just put your 'specific' redirects above your general ones). You rule should look something like this (I've not confirmed!):

            RewriteRule ^/news/dinosaur/ninja/$ /blog/ninja/ [L,R=301]

            I hope all that make sense. Let me know how you get on!

            EntrustSEO 1 Reply Last reply Reply Quote 0
            • DanDeceuster
              DanDeceuster @EntrustSEO last edited by

              Ah you have a parameter in the old URL. That ? is the real trick here. because you redirected /news to /blog it will redirect /news?anythingyouputhere to /blog?anythingyouputhere if that makes sense.

              Did you try to redirect /blog?tag=business-2 to /blog/category/business yet?

              1 Reply Last reply Reply Quote 0
              • EntrustSEO
                EntrustSEO @Tom-Anthony last edited by

                Wow thanks so much. This might be way over my head (I know very little about web development) but I'm going to talk to our devs about it. Thanks again!!

                1 Reply Last reply Reply Quote 0
                • EntrustSEO
                  EntrustSEO @EntrustSEO last edited by

                  I did try that. Not sure why it isn't working but I think it has something to do with Tom's answer below. Heh. Thanks though Daniel!!

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post
                  • Alternatives 301? Issues redirection of index.html page with Adobe Business Catalyst
                    LoganRay
                    LoganRay
                    0
                    2
                    106

                  • .htaccess Redirect 301 issues
                    Cyberace
                    Cyberace
                    0
                    5
                    140

                  • Redirect a 301 Redirect
                    RedCaffeine
                    RedCaffeine
                    0
                    5
                    98

                  • 301 Redirect Domain or 301 Redirect Domain + Interior Pages
                    Room214
                    Room214
                    0
                    7
                    1.1k

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

                  • 301 redirect Issues
                    stefanok
                    stefanok
                    0
                    4
                    881

                  • 301 redirect issues
                    EclipseLegal
                    EclipseLegal
                    0
                    5
                    637

                  • 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