New researchTechnical SEO & AI Search · 2027Explore the framework

Out-of-stock and discontinued products: what to do for SEO

Keep, redirect or remove? How to handle temporarily out-of-stock, discontinued and seasonal products without losing rankings or creating soft 404s.

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 availability to https://schema.org/OutOfStock; Google’s merchant listing documentation lists availability values such as InStock, OutOfStock and BackOrder. 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:

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.

· Founder, Crawlens

Dien builds Crawlens, a desktop crawler for technical SEO audits, and writes about the checks it runs: crawling, indexing, rendering and Search Console data.

Audit your own site with Crawlens

Crawl, run 70 checks, and see them next to Search Console and Core Web Vitals data.

Download free for Windows