Server return 404 and 200 status
-
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 -
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.
-
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
-
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
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Confused about repeated occurences of URL/essayorg/topic/ showing up as 404 errors in our site logs
Working on a Wordpress website, https://thedoctorwithin.comScanning the site’s 404 errors, I’m seeing a lot of searches for URL/essayorg/topic, coming from Bingbot, as well as other spiders (Google, OpensiteExlorer). We get at least 200 of these irrelevant requests per week. Seems like each topic that follows /essayorg/ is unique. Some include typos: /dissitation/Haven't done a verification to make sure the spiders are who they say they are, yet.Almost seems like there are many links ‘in the wild’ intended for Essay.Org that are being directed towards the site I’m working on.I've considered redirecting any requests for URL/essayorg/ to our sitemap… figuring that might encourage further spidering of actual site content. Is redirection to our sitemap xml file a good idea, or might doing so have unintended consequences? Interested in suggestions about why this might be occurring. Thank you.
Technical SEO | | linkjuiced0 -
Intermittent 404 - What causes them and how to fix?
Hi! I'm working on a client site at the moment and I've discovered a couple of pages that are 404ing but producing a 200 OK response. However, I have checked these URLs again and some are now producing a 404 Error response. No changes have been made (that I'm aware of) so it appears that the URLs are returning both 200 OK and 404 Error responses intermittently. Any ideas what could cause this and the best solution? Thanks!
Technical SEO | | daniel-brooks0 -
Migrated site back in April and rankings have not returned.
I sure hope someone can help me with this. Back in April I migrated my site and did a website redesign. We implemented all the 301 redirect page for page. I lost about 40% of traffic. My main key word is baby headbands that goes to our home page. www.princessbowtique.com We were ranking at number two and have fallen down to number 9 and 10 and have recently come back up to number 8. My question is and I am wondering if there is something wrong with my HTML Code, or something else. All other pages stay lost some rankings but not as much a my home page. This home page is what gets most of my traffic and we are really hurting. I've had to let go of my employees and it's looking really bad for our business. Anyhow I'm trying to figure out what I can do it improve. I migrated to Big Commerce and they did all the 301 redirects. All catagories stayed the same url but the product pages did have 301 redirects.
Technical SEO | | PB20070 -
404 issues
Hello, Some time ago, something like a month and a half) I have removed all 404 errors from the google index and the webmaster tools have removed them already, however yesterday moz found the same 404 errors that i have removed from indexing (tose pages are deleted or redirected by the site developer). What could be an issue here and why webmaster tools are not registering those 404 errors but moz analytics does. And the other question is if those pages do not exist can i track where the placed? I tried dowloading moz crawl test, but the refering source was not provided. I would highly appreciate anyones help. Thank you
Technical SEO | | rikomuttik0 -
Pages appear fine in browser but 404 error when crawled?
I am working on an eCommerce website that has been written in WordPress with the shop pages in E commerce Plus PHP v6.2.7. All the shop product pages appear to work fine in a browser but 404 errors are returned when the pages are crawled. WMT also returns a 404 error when ‘fetch as Google’ is used. Here is a typical page: http://www.flyingjacket.com/proddetail.php?prod=Hepburn-Jacket Why is this page returning a 404 error when crawled? Please help?
Technical SEO | | Web-Incite0 -
404 errors is webmaster - should I 301 all pages?
Currently working on a retail site that shows over 1200 404 errors coming from urls that are from products that were on the site, but have now been removed as they are seasonal/out of stock. What is the best way of dealing with this situation ongoing? I am aware of the fact that these 404s are being marked as url errors in Google Webmaster. Should I redirect these 404s to a more appropriate live page or should I leave them as they are and not redirect them? I am concerned that Google may give the site a penalty as these 404s are growing (as the site is a online retail store and has products removed from its page results regularly). I thought Google was able to recognise 404s and after a set period of time would push them out of the error report. Also is there a tool out there that on mass I can run all the 404s urls through to see their individual page strength and the number of links that point at each one? Thanks.
Technical SEO | | Oxfordcomma0 -
"/blogroll" causing 404 error
I'm running a campaign, and the crawling report for my site returned a lot of 4xx errors. When I look at the URLs, they all have a "/blogroll" in the end, like: mysite.com/post-number-1/blogroll mysite.com/post-number-2/blogroll And so on, for pretty much all the pages. The thing is, I removed the blogroll widget completely, so I really wouldn't know what can possibly point to links like that. Is there anything to fix on the site? Thanks
Technical SEO | | Baffo0 -
Does server location matter?
Hi guys, A friend's website is hosted in Germany (showing German IP in Flagfox) but it is a UK-based local business that only serves customers within a small radius covering 3 medium sized UK towns (they sell heavy construction materials for collection only). Should I advise him to change hosting location to the UK? Will this help him rank better for regional keyword searches & Google Places? He has some 'followed' links from UK sites (over 6 months old) that are not being picked up by Majestic, OSE or Webmaster Tools - is this likely to be connected to the server location? Thanks in advance for any help!
Technical SEO | | Tman30