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. Redirects & 404 Errors

    Redirects & 404 Errors

    Technical SEO Issues
    6 3 218
    • 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.
    • marisolmarketing
      marisolmarketing last edited by

      Hi everyone,

      I'm probably missing some GLARING error here, but I'm hoping you can help me! We recently built a new website on Wordpress and attempted to use a redirect plugin to take care of some old pages. The issue we are having though, is that when you click an old link you are not automatically redirected and instead are given a 404 error page. Then, when you try to view another page (by clicking a navigation item), every pages shows a 404 error. I implemented a redirect plugin, however it seems to start to work then still throws the 404 page.

      I believe this has something to do with the htaccess file which has the standard WP rewrite info in there...

      The way the old site was setup was kind of janky, so wondering if it's on that side or if I'm just going crazy. An old URL example would be http://orchards inn.com/index.php/specials and the new page is http://orchardsinn.com/special-offers. Sometimes the redirect seems to work, and others it actually throws a 404 page, then every other page in the navigation is 404'd as well.

      Your help is GREATLY appreciated!!

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

        Hi, can you please tell us your URL so we can look closer?

        It appears to be the plugin you are using, probably you need to fix some parts of the code, I'm shooting to guess here... but you can probably set some redirect rules before the wordpress's rules to manage the old pages and then remove the plugin, which is causing the 404s on the 404s.

        Hope that helps.

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

          Hmmm this could be tricky once it's starts becoming unclear what redirects were done where etc. I'd take a clean slate approach - note that to do this you have to have the OLD URLs somewhere - either in analytics, an old crawl, archive.org, webmaster tools etc;

          1. Gather up ALL old URLs from the sources listed above (old crawls, analytics, webmaster tools etc)
          2. Prepare any 301 redirects you need. I recommend using the .htaccess file. It's much easier to keep track of and have it all in once place.
          3. Disable the redirect plugin
          4. Remove any redirects from .htaccess
          5. Test the site to make sure they are all gone
          6. Put your new redirects all back into the .htaccess file

          Now in theory you should have redirects ONLY in the .htaccess file. Test the site by crawling it. Test some of the old URLs and make sure they redirect.cYou can also put your old back links into Screaming Frog in list mode and check them.

          I find the redirect plugin is OK but it's best to shut off any automatic creation of redirects.

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

            Hi Dan,

            Thank you so much for taking the time to be so thorough in your answer! I really appreciate it. I attempted the htaccess redirects a little while back, but maybe I was doing them wrong. I have all of the old URLs in a csv, and they will all need to be redirected to new pages on the new site.

            When I do the redirects in htaccess, they should look like this, correct?

            Redirect 301 /specials/ http://www.orchardsinn.com/special-offers/

            Also, If I have a few old pages (i.e. old photo gallery pages or a contact page), how can I redirect them all to the same new page? I think that was where I was having issues, but couldn't figure out what to do.

            Again, I really appreciate your help, so thanks in advance!

            evolvingSEO 1 Reply Last reply Reply Quote 0
            • evolvingSEO
              evolvingSEO @marisolmarketing last edited by

              Hey There

              Yes that looks like the right format for 301. Make sure you're putting that below the default wordpress stuff.

              If you want to redirect a bunch of pages all to one page you just do it like this;

              Redirect 301 /photos-1/ http://www.orchardsinn.com/new-page/

              Redirect 301 /photos-2/ http://www.orchardsinn.com/new-page/

              Redirect 301 /photos-3/ http://www.orchardsinn.com/new-page/

              etc...

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

                Awesome Dan, thanks again for helping me out!

                I implemented what you suggested and I'm still having the same issue. I think it has to do with the way the old URLs were setup, which included "index.php" before every folder (i.e. http://orchardsinn.com/index.php/specials)

                When I implement the redirect:

                Redirect 301 /specials/ http://www.orchardsinn.com/special-offers/

                Then clear my cache and attempt to click the old link, it takes me to the site with a 404 error page. Then, when I try to navigate to another page via the navigation, they all return 404 errors.

                Any thoughts?

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                • Redirect for Soft 404 or 404?
                  JaredDetroit
                  JaredDetroit
                  0
                  4
                  2.4k

                • How i can remove 404 redirect error (Wordpress)
                  nichehackathon1
                  nichehackathon1
                  0
                  5
                  405

                • Increase 404 errors or 301 redirects?
                  tomhall90
                  tomhall90
                  0
                  8
                  1.4k

                • 404 Errors & Redirection
                  Christy-Correll
                  Christy-Correll
                  0
                  5
                  127

                • What is the difference between 301 redirect to 404 vs just 404.
                  SEO5Team
                  SEO5Team
                  0
                  3
                  3.3k

                • How to fix this 404 : Error ( 4XX (Client Error) )
                  igor.pinchevskiy
                  igor.pinchevskiy
                  0
                  3
                  1.2k

                • 404 Errors
                  Confetti_Wedding
                  Confetti_Wedding
                  0
                  5
                  693

                • How to fix 404 (Client Error) errors in wordpress blog?
                  AlanBleiweiss
                  AlanBleiweiss
                  1
                  2
                  1.2k

                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