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. Multiple 301 redirects considered a redirection chain?

    Multiple 301 redirects considered a redirection chain?

    Intermediate & Advanced SEO
    16 5 5.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.
    • Hondaspeder
      Hondaspeder last edited by

      I need to redirect a ton of duplicate content, so I want to try

      redirect 301 /store/index.php /store

      redirect 301 /store/product-old /store/product-new

      redirect 301 /store/product-old1 /store/product-new1

      redirect 301 /store/product-old2 /store/product-new2

      redirect 301 /store/product-old3 /store/product-new3

      redirect 301 /store/product-old4/file.html /store/product-old4/new4/file.html

      and then a whole bunch of old dead links to homepage.

      So we've had /index.php redirected to / on other parts of the site for awhile, and for the most part /store is a friendly URL, but then we have tons of dup content and work arounds that preceded my job here. I'm wondering if those redirects above would be considered a redirection chain? Since the all the redirects below the /index.php -> /store count on that one redirect.

      Thanks for any insight you may be able to give!

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

        If I understand correctly I'm going to say no (with a low degree of certainty :D).

        So /store/product-old1 you are assuming already goes through /store/index.php?id=product-old1 (or similar) to produce that first url?

        So to get to /store/product-new1 from a link to /store/product-old1 you're wondering how many steps your .htaccess puts it through?

        I'll have to let somebody with better .htaccess skills than mine confirm, but I think it's all resolved as one, in sequence, if it's on the same server (and set up correctly). I'm maybe talking nonsense though.

        However if it was a chain then, for example, somebody going to my WordPress site using mysite.com/page1 would end up at www.mysite.com/redirected-page1/ and after hitting about 4 redirects (www, permalinks, redirect and trailing slash) and I've not seen anything to suggest that it's a problem.

        Hondaspeder 2 Replies Last reply Reply Quote 1
        • Hondaspeder
          Hondaspeder @StalkerB last edited by

          Yeah there's certain cases, sometimes all, where /old will go through the first /index.php redirect to be able to get to /new

          Yeah I guess you have a point, but for some reason it feels wrong. Google hasn't crawled this site for almost a month lol. So when it finally does, everything's gonna be so different it might just be like AHHH.

          Thanks for the help.

          1 Reply Last reply Reply Quote 0
          • Hondaspeder
            Hondaspeder @StalkerB last edited by

            Error 310 (net::ERR_TOO_MANY_REDIRECTS): There were too many redirects.

            StalkerB Hondaspeder 5 Replies Last reply Reply Quote 0
            • StalkerB
              StalkerB @Hondaspeder last edited by

              Talk me through it again then, please.

              You're trying to get to /store/product-new1 and you're getting a 310?

              Did I get the redirect thing mixed up and actually there's another redirect because the real URL would be /store/product-new1/index.php?

              1 Reply Last reply Reply Quote 1
              • Hondaspeder
                Hondaspeder @Hondaspeder last edited by

                redirect 301 /store/index.php /store

                redirect 301 /store/electronics1 /store/electronics

                that's pretty much it

                1 Reply Last reply Reply Quote 0
                • StalkerB
                  StalkerB @Hondaspeder last edited by

                  I might bow out gracefully before I get you in any more trouble 😕 But I'll see what I can replicate and test 🙂 What would be the raw URL of the electronics pages?

                  Is it actually rewriting from something like /store/index.php?id=electronics or is it /store/electronics.php (or even /store/electronics/index.php)? Or are you on a CMS that make it hard to tell?

                  1 Reply Last reply Reply Quote 1
                  • Hondaspeder
                    Hondaspeder @Hondaspeder last edited by

                    No trouble I'm quick with the mouse. That's why I like doin this stuff around 4am haha. Thanks anyway Barry.

                    You might be onto something, it's magento which I have limited to no knowledge of how it redirects, I'm sure that's the deal I'll look into it but after I need sleep soooo tired

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

                      Wow, this is not fun 😞

                      Yes, you can get down the chain too many times and your browser just pukes. And likely Google will give up.

                      1. Test the OLD page(2) to see if it has any inbound links or page authority. If not, then a redirect is not necessary. Yes, the page still might be indexed, but I would do a header redirect with a 301 instead of using the .htaccess file. It is on the fly and much cleaner.

                      Depending on how your site is coded, you can test the page in PHP.

                      1. Find incoming URL
                      2. Test against database
                      3. Send to new location

                      Simply take the incoming URL and pull the location in the _HEADER. Then look at your database that you set up with all these redirects. Then redirect the user to the new page and 301 the redirect in the header.

                      All the work you do is then in the database. Look at Google Webmaster for 404 pages and adjust the database. I would also then state that if I found no URL within the database (good or old) then I would redirect to the home page and 301 that. This way you do not lose any link juice and keep your 301 chain down to one dynamic hop.

                      I hope that helps

                      Hondaspeder IRC 2 Replies Last reply Reply Quote 2
                      • StalkerB
                        StalkerB @Hondaspeder last edited by

                        Are you using Magento's funny built in redirect tool? I've never really understood how that worked 😕

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

                          There are both indexed and internally linked urls that need to be redirected properly. Using two CMS's WP and Magento and I'm not too much of a php wiz so I really am not following. besides the product pages still being linked there are like 1000 more 404 pages that need to be redirected to the homepage. Would mod rewrite be better here?

                          And Barry, yes I guess so, just found out about it, trying to understnad wth is goin on here. Looks like mage redirects a couple times on its own as well? Who knows, it's puttin me to sleep lol. Hopefully I can find out more tomorrow. Thanks for the answers guys +1

                          Getz.pro Hondaspeder 3 Replies Last reply Reply Quote 0
                          • Getz.pro
                            Getz.pro @Hondaspeder last edited by

                            WP has to have a 404 handler someplace in their admin section. At least the dead pages you can redirect, but I do not know if WP will 301 those.

                            Then yes, you have to use your .htaccess file to shift those pages. What a mess! Write them all down and carefully map them out. I would still test the page to see if it has any inbound links, if not, I might let the 404 handler handle that link to save editing.

                            I would also as WP or Magento or their message boards if any of them have this same problem and see if there are any plug-in fixes.

                            1 Reply Last reply Reply Quote 1
                            • Hondaspeder
                              Hondaspeder @Hondaspeder last edited by

                              Yeah I might have to seek help on the magento boards.

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

                                Ask if you can do header code injection where you can dump code blocks in the header.

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

                                  As far as 'header redirect' are you talking about a meta refresh redirect rather than a 301 htaccess redirect? I thought meta refresh redirects were not necessarily a good thing to do in the eyes of search engines?

                                  Also, isn't redirecting a URL of a page that no longer exists to the home page actually a violation of Google's guidelines?

                                  I'm currently doing a project to resolve many 404s being reported in Google Webmaster account.

                                  Many of them are simply malformed URLs (live URLs with a period at the end or a comma or an equal sign, etc.) from the referrer's side - yet some carry a vaulable backlink authority, so they should be 301'd, in my opinion to the intended URL, when that is obvious.

                                  However, if there is no longer a close match page - say for an old but valued backlink - to ideally redirect to, is it OK to - in attempt to retain the backlink value - redirect what are really 404 pages to the homepage or a top landing page?  If so, is there a limit to the number of redirects to resolve a 404?

                                  Thanks for any clarification of the issue raised above.

                                  jmueller 1 Reply Last reply Reply Quote 0
                                  • jmueller
                                    jmueller @IRC last edited by

                                    301 redirecting an old, no longer existing page to the homepage or any other page (I'd suggest using the closest matching existing page) is certainly not a violation of google's guidelines.

                                    1 Reply Last reply Reply Quote 0
                                    • 1 / 1
                                    • First post
                                      Last post
                                    • Handling Multiple Domain 301 Redirects on Single htaccess file
                                      Andy.Drinkwater
                                      Andy.Drinkwater
                                      0
                                      2
                                      291

                                    • Multiple 301 Redirect Query
                                      PeteC12
                                      PeteC12
                                      0
                                      3
                                      82

                                    • Order and multiple match when 301 redirect ?
                                      WilliamKammer
                                      WilliamKammer
                                      0
                                      3
                                      284

                                    • 301 redirect to multiple domain
                                      StevePatenaude
                                      StevePatenaude
                                      0
                                      6
                                      146

                                    • How does Google treat chained 301 redirects?
                                      generalzod
                                      generalzod
                                      0
                                      3
                                      1.7k

                                    • Multiple 301 Redirects on the same domain name
                                      AmyCrompton
                                      AmyCrompton
                                      1
                                      3
                                      357

                                    • How to conduct catch 301 redirects & have the separate 301 redirects for the key pages
                                      BenRWoodard
                                      BenRWoodard
                                      0
                                      2
                                      288

                                    • 301 Redirecting multiple domains to brand new domain
                                      SEODinosaur
                                      SEODinosaur
                                      0
                                      13
                                      1.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