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. Mass 301s

    Mass 301s

    Technical SEO Issues
    6 4 91
    • 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.
    • Kennelstore
      Kennelstore last edited by

      Hi All, im trying to find a way to do a mass list of 301s instead of just doing them individually, does anyone have any ideas or tips into how i can do this?

      1 Reply Last reply Reply Quote 0
      • Andy.Drinkwater
        Andy.Drinkwater last edited by

        What are you trying to redirect? Is it every page in a site, or specific pages?

        -Andy

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

          Just the products page

          Andy.Drinkwater 1 Reply Last reply Reply Quote 0
          • Bishal_Biswas
            Bishal_Biswas last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • Andy.Drinkwater
              Andy.Drinkwater @Kennelstore last edited by

              Without seeing the site and proposed structure, it is a little awkward to say with certainty, but if you have a structure for the product pages that can be matched via a wildcard expression, then it is possible to write an .htaccess redirect for it - but most would probably opt to do this with the old page being redirected to the new page - a more straight forward procedure.

              -Andy

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

                Presuming your product pages sit under a /products/ subfolder, you could use this code in your htaccess file:

                RewriteRule ^products/(.*)$ /anotherdirectory/$1 [R=301,NC,L]

                Or to redirect all to the homepage:

                RewriteRule ^products/(.*)$ /$1 [R=301,NC,L]

                Obviously you can change the words "products" and "anotherdirectory" to whatever is applicable to you.

                For more info on htaccess redirection you can read the Moz guide here.

                1 Reply Last reply Reply Quote 2
                • 1 / 1
                • First post
                  Last post
                • Will 301s to Amazon Hurt Site?
                  willcritchlow
                  willcritchlow
                  1
                  2
                  33

                • Should I include the comment URLs with the 301s when doing a migration?
                  0
                  2
                  32

                • HTTPS & 301s
                  CleverPhD
                  CleverPhD
                  0
                  4
                  157

                • Mass HTTP to HTTPs move
                  Clickmetrics
                  Clickmetrics
                  0
                  8
                  172

                • Mass 404 pages
                  AlanBleiweiss
                  AlanBleiweiss
                  0
                  5
                  597

                • Too many 301s?
                  johnshearer
                  johnshearer
                  0
                  15
                  1.0k

                • 301s and Link Juice
                  IKT
                  IKT
                  0
                  4
                  620

                • Very, very confusing behaviour with 301s. Help needed!
                  wissamdandan
                  wissamdandan
                  0
                  2
                  646

                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