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. Server return 404 and 200 status

    Server return 404 and 200 status

    Technical SEO Issues
    4 2 141
    • 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.
    • omverma
      omverma last edited by

      Dear All,
                     We have a website where we are showing some products. Many times it happens when we remove any product and add that again later. In our site, we have product list page and detail page. So if any product get deleted and client hits the detail page with deleted product url, then we are returning 404. Next time when that product will be available our server will return 200.

      I have two questions :

      1. Is is right way to deal with deleted product ?

      2. After deploying it, we observed that our keywords ranking is going down, is that really affect ?

      Thanks,
      Om

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

        Hi Sunit,

        Stephanie Chang wrote a nice blog post about how to handle this situation here on Moz.

        She points out there is no right way to do this. I however really like the option to leave the page and content on the site but mark the product page as out of stock, or unavailable right now. I used to run my own e-commerce store and I had many items that were purchased from overseas. At times I could not get an accurate re-stock time from my suppliers due to language and international challenges. My solution was to create and out of stock (email me when available again) notice. I found when those products did come back in stock, that started selling again quickly do to the emails that went out.

        The other thing Search Engines don't particularly like content that comes and goes so that may be why you noticed a hit in some pages.

        Hope that helps,

        Don

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

          Hi,

          Nice comments. But one thing, since our site have millions of products and may be most of them we wont get back. So in that case, the url already indexed should get removed and should not crawl again. Thats why we were returning 404, so that crawler will understand that url is no more valid.

          Thanks,

          Om

          donford 1 Reply Last reply Reply Quote 1
          • donford
            donford @omverma last edited by

            Then 404 is the correct way to handle it.

            You should also be sure that you clean up any internal links to these pages after they are gone. Search engines can understand other sites linking to pages that are no longer available but they do frown on your own site sending users to missing pages.

            1 Reply Last reply Reply Quote 1
            • 1 / 1
            • First post
              Last post
            • If my server is returning a 404, does that mean google cannot crawl it?
              GastonRiera
              GastonRiera
              0
              7
              52

            • 422 vs 404 Status Codes
              AfroSEO
              AfroSEO
              0
              5
              874

            • My 404 page is returning a 404
              CleverPhD
              CleverPhD
              0
              7
              114

            • 404 not found page appears as 200 success in Google Fetch. What to do to correct?
              ThompsonPaul
              ThompsonPaul
              0
              4
              1.1k

            • Google's "cache:" operator is returning a 404 error.
              clotairedamy
              clotairedamy
              0
              4
              1.7k

            • No Search Results Found - Should this return status code 404?
              bradkrussell
              bradkrussell
              0
              3
              5.1k

            • Status code 404??!
              Francisco_Meza
              Francisco_Meza
              0
              3
              410

            • Thoughts about stub pages - 200 & noindex ok, or 404?
              CleverPhD
              CleverPhD
              0
              7
              1.5k

            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