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. 301 to 404

    301 to 404

    Intermediate & Advanced SEO
    4 2 1.5k
    • 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.
    • pwpaneuro
      pwpaneuro last edited by

      Hello Everybody,

      I've got a technical question about server responses. Imagine this scenario:

      www.domain.com/not-existing-page/ --> 404 &

      domain.com/not-existing-page/ --> www.domain.com/not-existing-page/ --> 404

      I use Wordpress for my websites and I can't seem to be able to configure it (or the server where I have total control) to stop it doing this. Ideally, a non-existent url should return 404 instantly, not first redirect to the "corect" url and then return 404.

      Anyone experiencing this and can help? Here's a neat tool that allows you to quickly check server response codes - for those of you who are new to this: http://responsetester.appspot.com/

      Much appreciated!

      Alex

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

        The first 301 is in place in order to indicate that the www version is the canonical version.

        A 301 to a 404 like that isn't an issue - either create a page at /not-existing-page/ or 301 that URL to a correct one. That's it. The problem is not the 301, it's the 404. Get rid of it.

        pwpaneuro 1 Reply Last reply Reply Quote 0
        • pwpaneuro
          pwpaneuro @KaneJamison last edited by

          What you're suggesting:  "The problem is not the 301, it's the 404. Get rid of it." does not make sense to me.

          404 pages happen for lots of reasons and this is normal. It would be nuts to try to "patch" every single one. If the page does not exist, it should return a 404 and that's it.

          What if a bunch of people link (mistakingly or not) to a bunch of non-existent pages? You're going to waste your time finding them and creating content for them? ...

          KaneJamison 1 Reply Last reply Reply Quote 0
          • KaneJamison
            KaneJamison @pwpaneuro last edited by

            404s happen for a lot of reasons, but the only time you need to fix them is when there is a link involved that is pointed to a 404 page.

            You then have 4 choices:

            1. change the link if you have control over it
            2. create a page there
            3. 301 the URL to something else
            4. leave it broken

            #1 is the best solution if it's possible. #2 or #3 are acceptable alternatives to me. #4 is unacceptable to me for the sites I manage, but if you have a large or dynamic site where the URLs change frequently, it may be something you have to live with or learn how to handle in a better way (such as a plug-in like Smart404, for a Wordpress site).

            As far as whether I'm going to clean up every link to a broken page on my site - I'll absolutely do it if it's a good link, because it's way easier to 301 that link than it is to earn another link elsewhere. If it's a crap link I might not bother.

            1 Reply Last reply Reply Quote 1
            • 1 / 1
            • First post
              Last post
            • Google Seeing 301 as 404
              Christy-Correll
              Christy-Correll
              0
              4
              153

            • Pages that 301 redirect to a 404
              JarnoNijzing
              JarnoNijzing
              0
              3
              137

            • Site migration - 301 or 404 for pages no longer needed?
              Whebb
              Whebb
              0
              3
              194

            • Is it a problem to use a 301 redirect to a 404 error page, instead of serving directly a 404 page?
              lcourse
              lcourse
              0
              5
              2.0k

            • New domain purchase 301 and 404 issues. Please help!
              Andy.Drinkwater
              Andy.Drinkwater
              0
              7
              153

            • 404 ? 301 ? What is your opinion ?
              android_lyon
              android_lyon
              0
              4
              119

            • New web site - 404 and 301
              AlanMosley
              AlanMosley
              0
              4
              574

            • 301 or 404?
              PanuKuuluvainen
              PanuKuuluvainen
              0
              5
              1.0k

            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