In an online store, products come and go all the time. One sells out and comes back in two weeks, another stops being made and another is replaced by a new model. Each one has its page, with whatever it has already earned on Google, and when the product is missing, someone has to decide what happens to that page.
When we review stores, what we see most often are redirects that look fine and end up on an empty page, and huge lists of 404s that are scarier than they should be. Here's what we would do in each case, based on what Google publishes.
If it's coming back, the page stays
A product that's out of stock for a few days or weeks doesn't need you to touch its URL. What we would do is keep the page live, say at the top that it's out of stock and when it's expected, and show similar alternatives or a way to get notified when it's back. That way the page keeps what it has earned, and people who arrive from Google don't leave empty-handed.
What you want to avoid is leaving it empty. If the template hides everything when there's no stock and only a message is left, Google may see it as an error page. It's the same thing that happens to the page for a sales event once it ends, as we explain in your Black Friday page.
If it isn't coming back, it depends on whether there's a replacement
When the product won't be sold anymore, the question is whether there's another one that does the same thing. Google sums it up in its guide to troubleshooting crawling errors, updated November 27, 2026. If the page has a clear replacement, it gets a 301 redirect, the one that tells Google the page has moved for good. If there's no other page with similar content, the product page has to return a 404 or a 410, the status codes that say the page no longer exists.
The new model of the same product is a good replacement, and another product in the category almost never is. The same guide adds a nuance. Once you've confirmed the page wasn't removed by mistake, deciding whether to do anything else is a business and user experience decision, for example if visits are still coming in from links on other sites.
A 404 isn't an error if the product no longer exists
When we get a list with thousands of 404s, the first thing we do is sort them. A 404 is the right response for something that doesn't exist, and in a store it's normal. What does need fixing are the store's own links that still point to those pages, because they break the customer's browsing.
In that guide, Google says that returning a 404 or a 410 for pages that no longer exist is expected, that it won't trigger a manual action or hurt the site's indexing or ranking, and that the 404s it already knows barely use up its crawl budget. What it asks is that you remove those URLs from the sitemap and don't block them in robots.txt, because Google needs to get in to see the 404 and drop the page from its index.
Sending everything to the homepage doesn't help
It's the quick fix when a batch of products gets deleted, and Google advises against it. In the same guide, it asks you not to redirect pages that no longer exist to the homepage or to another unrelated page, and warns that it treats them as soft 404s, meaning errors even though they respond fine. Redirecting only makes sense when there's an equivalent replacement.
In audits we also see the opposite case, redirects that look correct in the code and end up on an empty page. That's why, when we review a URL change, it isn't enough for the redirect to respond fine. We check where it leads, whether that destination has products and whether it points straight to the final URL. They're the same redirects as in a migration, and we check them the same way.
How to tell Google a product is out of stock
An out-of-stock page has to say so in the text, where people can see it, and also in the structured data, the code that describes the product to search engines. In its merchant listing documentation, Google lists the availability values, like OutOfStock for what's sold out, BackOrder for what can be ordered now and shipped later, PreOrder for presales and Discontinued for what's no longer made, and asks you to use only one.
The same page has a detail that matters in a store that changes fast. If that data is generated with JavaScript, Google may crawl it less often and less reliably, which hurts exactly where price and availability are concerned, so it recommends putting it in the initial HTML. In our work as an ecommerce SEO agency, the rule for missing products is set once for the whole catalog, so it doesn't depend on who uploads each product.
Sources
- Google Search Central, Troubleshoot Google Search crawling errors. Official documentation, updated November 27, 2026.
- Google Search Central, Merchant listing (Product, Offer) structured data. Official documentation, updated September 8, 2026.