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. What to use instead of a 404

    What to use instead of a 404

    Intermediate & Advanced SEO
    4 4 138
    • 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.
    • AngelosS
      AngelosS last edited by

      Hey there Mozzers,

      What would be preferable to use instead of a 404 on a ecommerce website.

      Can I use a 301 redirection to the main category of the product? So for example if I have a t-shirt that is not available anymore can I use a 301 to redirect the traffic to the clothing category?

      1 Reply Last reply Reply Quote 0
      • Yoav-Blustein
        Yoav-Blustein last edited by

        Hi..

        Google guidelines recommends that If a page does not exist, you should state that clearly to the user and return a 404 page.
        What you really need to do is to set up a very clever 404 page so you will not loose the client. There are many ecommerce sites that have super clever 404 pages where users are able to see similar items that are in stock, make a search or go to different page.. Just be creative and research what works for your competitors.

        Using 301 to 404 pages is a bad practice in general..

        Good luck

        _nitman 1 Reply Last reply Reply Quote 3
        • _nitman
          _nitman @Yoav-Blustein last edited by

          Hi AngeloS,

          I agree with Yossi that soft 404 is not a good practice if the product isn't available.

          But here, you're talking about the case where your product isn't available anymore, which is not the 404 case clearly. 404 means, resource not found on the website. So, your page is not 404 semantically as page it still there with a different availability status.

          Here comes my recommendations on this:

          • If the "product" is temporarily unavailable, you can show an appropriate message with 200 http status. Additionally,  for better UX, you can show a recommendation bar showing other related products and a notify-me option where you can get user's email id on which you can send a notification mail as soon as this product gets back in stock.
          • If the "product" is permanently discontinued and you want to get rid of that page altogether, you can probably show 200 http status with an appropriate message and have a noindex tag on these pages, or you can start showing 410 http status if you want to convey a message to bots that your "page" won't come back ever.

          You can read more about HTTP status codes here.

          Hope this helps!

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

            Hi,

            It's not about 'using 404 pages'. It's about removing the occurence of a 404 page when a product isn't available...

            So the answer is yes. It's fine to redirect what was a product page to the main relevant category page if that product is no longer available and you don't plan on restocking in the future.

            In fact it's recommended if you want to preserve a large percentage of the link equity the original page has built up, and hopefully provide a good user experience by allowing customers to find alternative products.

            The only issue is if you have thousands of products being discontinued, then the amount of 301s can affect the speed of your website. But I've managed redirects for websites with 100s of thousands of products, and 10s of thousands of error pages without any issue.

            I'd echo Yossi in saying that it may be worth creating a custom 404 Error Page which helps your users if they encounter it, and also improves your branding - with most eCommerce sites with large inventories, it's inevitable error pages will crop up despite your best efforts.

            And I'd echo Nitin in saying that if you might get the product back again, you're better leaving the pages on the site and allowing customers to register their interest when it reappears...

            1 Reply Last reply Reply Quote 1
            • 1 / 1
            • First post
              Last post
            • Using hreflang="en" instead of hreflang="en-gb"
              MickEdwards
              MickEdwards
              1
              6
              2.0k

            • Using cononical tag instead of 301
              EGOL
              EGOL
              0
              3
              123

            • 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

            • Block in robots.txt instead of using canonical?
              RobertFisher
              RobertFisher
              0
              9
              1.6k

            • 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

            • Search instead of 404 - Vtex Brazil
              AlanMosley
              AlanMosley
              0
              2
              277

            • Using Images Instead of Text to Control Keywords on Page
              MWM3772
              MWM3772
              0
              6
              415

            • Using a 302 instead of a 301
              NextGenEDU
              NextGenEDU
              0
              4
              720

            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