Part of the E-commerce SEO series. For the full picture, start with E-commerce technical SEO: the complete guide for online stores.
Stock changes every day, and every change is an SEO decision: keep the page, redirect it, or let it go. Get it wrong and a store either throws away the rankings of products that come back next month, or fills its index with dead pages and homepage redirects.
Temporarily out of stock: keep the page
If the product will be back, the page should stay exactly where it is:
- Keep it live and indexable at the same URL, so it keeps its links and rankings.
- Say it clearly on the page: out of stock, expected date if known, and alternatives or a back-in-stock alert.
- Update the structured data. Set the offer’s
availabilitytohttps://schema.org/OutOfStock; Google’s merchant listing documentation lists availability values such asInStock,OutOfStockandBackOrder. See product structured data. - Update the Merchant Center feed so the feed, the markup and the page agree.
Keep the page useful while it’s unavailable. A product page reduced to “out of stock” and nothing else can look empty; a page with full details, related products and an alert form doesn’t.
Discontinued: redirect or remove
| Situation | Action |
|---|---|
| Replaced by a newer model or close equivalent | 301-redirect to the replacement |
| No replacement, but a clearly relevant category | Redirect only if the category genuinely helps someone looking for this product |
| No replacement | Return 404 or 410 and remove internal links to it |
| Has strong links or traffic and useful content | Consider keeping it as an archived page with the information and alternatives |
Two Google statements frame this. A missing page isn’t a problem in itself: “404 responses are not necessarily a problem, if the page has been removed without any replacement” (Page indexing help). And mass redirects to an unrelated page are: “Don’t redirect many old URLs to one irrelevant single URL destination, such as the home page … This can confuse users and might be treated as a soft 404 error” (site moves). See soft 404 errors.
Seasonal products
Keep the same URL year after year and mark the product out of stock off-season. A new URL each season throws away last year’s links and rankings.
How do you check stock handling across a store?
In Crawlens:
- Use custom extraction to pull each product’s
availabilityfrom its JSON-LD (or the stock message on the page) into a column, and filter for out-of-stock products. - Add a custom rule to flag product pages where the availability is missing, so markup gaps show up in every audit.
- Check that removed products return 404 or redirect correctly: Internal pages return 4xx, Pages link to broken internal URLs and Internal links point to redirects show leftover links.
- With Search Console connected, Pages with search traffic return errors catches products removed while they still earned clicks.
For the rest of store-specific SEO, see the e-commerce technical SEO guide.
Checklist
- Temporarily unavailable products stay live, indexable and useful
- Out-of-stock status shown on the page and in
availability - Merchant Center feed matches the page
- Discontinued products redirected to a real replacement, or 404/410
- No mass redirects to the homepage
- Internal links to removed products cleaned up
- Seasonal products keep the same URL
Frequently asked questions
Should I remove out-of-stock product pages?
Not if the product is coming back. Keep the page live and indexable so it keeps its rankings and links, show that it's out of stock, and update the structured data's availability. Removing and re-adding it later starts from scratch.
What should I do with discontinued products?
Redirect the URL to the closest replacement product if there is one. If there isn't, let it return 404 or 410 and remove internal links to it. Google says a 404 isn't necessarily a problem for a page removed without a replacement.
Can I redirect discontinued products to the homepage?
It's not recommended. Google warns that redirecting many URLs to one irrelevant page, such as the homepage, can confuse users and might be treated as a soft 404.
How do I mark a product as out of stock in structured data?
Set the offer's availability to https://schema.org/OutOfStock, and keep it in sync with what the page shows. Update your Merchant Center feed too.