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. Problems Redirecting Group of Pages in Wordpress

    Problems Redirecting Group of Pages in Wordpress

    Intermediate & Advanced SEO
    7 2 130
    • 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.
    • Ayres-SEO
      Ayres-SEO last edited by

      This post is deleted!
      1 Reply Last reply Reply Quote 0
      • Bill.Sebald
        Bill.Sebald last edited by

        Could it have crashed the site because the .htaccess code was invalid? .htaccess can be tricky.  I usually recommend using the 301 feature in Yoast SEO or installing Simple 301 Redirects, just to keep out of .htaccess.

        http://www.baghouse.com/products/dust-collector-filters  did throw a 404.

        http://www.baghouse.com/products/dust-collector-filters/baghouse-filter threw a 301 to http://www.baghouse.com/products/baghouse-filters/

        It seems like there's some confusion on what's throwing which status code - I would do the following after you're done your changes:

        1. Clear the 404 errors in search console
        2. Run a screaming frog crawl and export the 404's
        3. 301 accordingly, maybe not using .htaccess depending on your comfort level (or use the options I listed above)
        4. Redo this in a few weeks, but look at the 404's in Search Console this time (as Google tends to find additional 404's - by clearing the 404's in step one, it's easy to see what the new 404's are)

        Hope that helps.  It's my usual process and seems to work well.

        http://www.baghouse.com/products/dust-collector-filters

        Ayres-SEO 1 Reply Last reply Reply Quote 1
        • Ayres-SEO
          Ayres-SEO @Bill.Sebald last edited by

          I double checked the syntax on them and they were correct.

          Well it seems that products/dust-collector-filters did throw a 404 but products/dust-collector-filters/ was properly redirected without a problem. It looks like its properly done with a 301.

          What I don't understand here is that it seems to be doing all of this automatically, without me doing anything. I only added two 301s to the htaccess and yet everything is redirecting. Is there some built in feature to wordpress that does this when you change the URL on existing pages? OR maybe some plugin I have?

          Bill.Sebald 1 Reply Last reply Reply Quote 0
          • Bill.Sebald
            Bill.Sebald last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • Bill.Sebald
              Bill.Sebald @Ayres-SEO last edited by

              Yes - if you change a URL directly in the page editor, Wordpress will do the 301 for you.

              Ayres-SEO 1 Reply Last reply Reply Quote 1
              • Ayres-SEO
                Ayres-SEO @Bill.Sebald last edited by

                You'd think I would know that... 😞 That would explain whats going on.

                How does Wordpress do the 301s in this way? Does it do some kind of coding engine to redirect it? (just curious)

                So in that case, when I changed the main page URL (/products/dust-collector-filters to /products/baghouse-filters it automatically changed all the lower pages and put 301s on all of them. Is that correct?

                So I guess I should just leave it and check on it again in a week or so and make sure everything is ok.

                Bill.Sebald 1 Reply Last reply Reply Quote 0
                • Bill.Sebald
                  Bill.Sebald @Ayres-SEO last edited by

                  You got it. Change the parent URL and the child pages' URLs will change accordingly (with 301s as well).

                  1 Reply Last reply Reply Quote 1
                  • 1 / 1
                  • First post
                    Last post
                  • If a page ranks in the wrong country and is redirected, does that problem pass to the new page?
                    katemorris
                    katemorris
                    1
                    2
                    94

                  • Redirecting homepage to internal page (2nd Tier page)
                    vtmoz
                    vtmoz
                    0
                    4
                    271

                  • Problem with Duplicate Page Wordpress
                    Vijay-Gaur
                    Vijay-Gaur
                    0
                    4
                    137

                  • We are switching our CMS local pages from a subdomain approach to a subfolder approach. What's the best way to handle this? Should we redirect every local subdomain page to its new subfolder page?
                    Ray-pp
                    Ray-pp
                    0
                    4
                    123

                  • Should i redirect this page?
                    JaneCopland
                    JaneCopland
                    0
                    5
                    112

                  • How to redirect whole site to home page without breaking wordpress
                    MattAntonino
                    MattAntonino
                    0
                    6
                    518

                  • Problems with 301 Redirects for non-www pages
                    cyberlicious
                    cyberlicious
                    0
                    10
                    1.2k

                  • 301 - should I redirect entire domain or page for page?
                    dunklea
                    dunklea
                    0
                    4
                    679

                  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