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.
    • 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
                            • Adventurous 301 redirection chain
                              GPainter
                              GPainter
                              0
                              2
                              44

                            • 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

                            • Google Re-Index or multiple 301 Redirects on the server?
                              JustinTaylor88
                              JustinTaylor88
                              0
                              4
                              555

                            • 301 Redirecting multiple domains to brand new domain
                              SEODinosaur
                              SEODinosaur
                              0
                              13
                              1.7k

                            • Embed Same Video On Multiple Pages or 301 Redirect Into 1?
                              irvingw
                              irvingw
                              0
                              4
                              624

                            • Multiple domains expiring that have 301 redirects to my primary domain. Am I in trouble?
                              absoauto
                              absoauto
                              0
                              3
                              416

                            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