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. Pages that 301 redirect to a 404

    Pages that 301 redirect to a 404

    Intermediate & Advanced SEO
    3 3 137
    • 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.
    • sbb024
      sbb024 last edited by

      We are going through a website redesign that involves changing URL's for the pages on our site. Currently all our pages are in the format domain.com/example.html and we are moving to stip off the .html file extension so it would just be domain.com/example

      We have thousands of pages as the site deals with news so building a redirect for each individual page isn't really feasible. My plan is to have a generic rewrite rule that redirects any page that ends .html to the stripped off version of this. A problem I can see with this is that it will also redirect pages that don't exist.

      So for example, domain.com/non-existant-page.html would 301 to domain.com/non-existant-page which would then return a 404 status.

      What would the SEO repercussions be for this? Obviously if a page doesn't exist already then it shouldn't show up in the search engine indexes and shouldn't be a problem but I'm a bit worried about how old pages that currently legitimately 404 will be treated when they start to 301 redirect to a 404 instead. Not sure if there any other potential issues from this that I've missed either?

      Thanks!

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

        Using the rewrite rule is fine.

        There is no issue with domain.com/non-existant-page.html 301 redirecting to domain.com/non-existant-page which would then return a 404 status. If you go to anydomain.com/any-non-existing-page you will return a 404 page but this endless amount of possible pages will not be crawled by search engines because they do not exist and you (or anyone else) should not be linking to them.

        With your old, legit 404 error pages, I would recommend 301 redirecting them to a relevant new page, a relevant category page, or the homepage if nothing else is suitable.

        1 Reply Last reply Reply Quote 2
        • JarnoNijzing
          JarnoNijzing last edited by

          I agree with Dave.

          When the page redirects from a page to a 404 it's another redirect however the url mentioned does not exist so there should not be any links to it within your site. If a competitor is linking to a non existing page it's referred to external and as long as it stays like that then you should be just fine. The problem starts when you start linking to a non existing page.

          So keep it clean and implement the change I would say.

          1 Reply Last reply Reply Quote 1
          • 1 / 1
          • First post
            Last post
          • Soft 404 error for a big, longstanding 301-redirected page
            GlobeRunner
            GlobeRunner
            0
            2
            337

          • I've got duplicate pages. For example, blog/page/2 is the same as author/admin/page/2\. Is this something I should just ignore, or should I create the author/admin/page2 and then 301 redirect?
            BeanstalkIM
            BeanstalkIM
            0
            5
            414

          • 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

          • Redirecting 404 pages
            danatanseo
            danatanseo
            0
            2
            74

          • An affiliate website uses datafeeds and around 65.000 products are deleted in the new feeds. What are the best practises to do with the product pages? 404 ALL pages, 301 Redirect to the upper catagory?
            Everett
            Everett
            0
            5
            135

          • Urgent Site Migration Help: 301 redirect from legacy to new if legacy pages are NOT indexed but have links and domain/page authority of 50+?
            JDMcNamara
            JDMcNamara
            0
            7
            450

          • How to conduct catch 301 redirects & have the separate 301 redirects for the key pages
            BenRWoodard
            BenRWoodard
            0
            2
            288

          • Are there any negative effects to using a 301 redirect from a page to another internal page?
            RobertFisher
            RobertFisher
            0
            11
            6.4k

          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