Out Of Stock And Discontinued Products
The reflex is to 404 or redirect discontinued products immediately, which throws away pages that may have years of links and rankings. The opposite reflex - keeping every dead product live forever - fills the index with pages that cannot convert. The right answer depends on whether the item is coming back and whether the URL has earned anything, and those are two separate checks.
Use when products go out of stock or get discontinued and you need to decide what happens to the URL without losing the rankings it holds.
The skill file
What you need first
- stock status feed with a returning-to-stock flag
- organic landing page data and referring domains per product URL
- a mapping of each product to its nearest live replacement
Method
- 01 For temporarily out of stock, keep the page live and indexable, keep the schema availability set to OutOfStock, and add a back-in-stock notification field. Removing the page for a two week stock gap costs more than the gap does.
- 02 For discontinued items, check organic sessions and referring domains over the last 12 months before deciding. Anything with links or steady traffic is a redirect candidate, not a delete candidate.
- 03 Redirect discontinued products with earned signal to the nearest genuine replacement product, not to the parent category. Category redirects get treated as soft 404s because the destination does not match the intent.
- 04 Where no genuine replacement exists, keep the URL live, return 200, mark it clearly as discontinued, and list alternatives on the page. This preserves the link equity and converts some of the traffic.
- 05 Only 410 products with no links, no traffic, and no replacement - the 410 removes them faster than a 404 and stops repeat crawling.
- 06 Set schema availability accurately at all times. Merchant listings surface stock state, and a page claiming InStock while showing sold out earns a manual action.
What this produces
A stock-state decision rule with a redirect map for discontinued SKUs that hold measurable search signal.
Where this goes wrong
- bulk-redirecting all discontinued products to their category page, which Google treats as a soft 404 and drops
- deleting seasonal products that return every year, then rebuilding the URL from scratch and losing the accumulated history
- leaving availability schema stale so listings advertise stock you do not have
Use this skill in your own AI
The download is a plain markdown file with the name and trigger in its frontmatter. Where an assistant supports skills it can load itself, that frontmatter is what it reads to decide this one applies.
Questions about this skill
When is this the right method rather than 404ing the URL?
When stock goes and someone is about to 404 the page or redirect it to the parent category. Both reflexes discard URLs that may hold years of links and rankings. This method separates two questions the reflex merges: whether the item is coming back, and whether the URL has earned anything measurable. Those get different answers and different treatment.
What do I need before deciding what happens to a dead product URL?
A stock feed carrying a returning to stock flag, twelve months of organic sessions and referring domains per product URL, and a mapping of each dead product to its nearest genuine replacement. Without the link and traffic data every decision defaults to delete and you retire URLs that were quietly earning. Without the replacement map redirects end up pointed at categories.
What does the decision rule produce, and which part ships?
A decision rule per stock state plus a redirect map for the discontinued SKUs that hold measurable search signal. The map is what ships this quarter, but the rule is what stops the problem recurring, because it tells merchandisers what happens to a URL before they retire a product rather than after someone notices the traffic gone.
What ruins this most often?
Bulk redirecting every discontinued product to its category page. The destination does not answer the query, so it is treated as a soft 404 and dropped, and you lose the links along with the ranking. Where no genuine replacement exists, keep the URL live at 200, mark it clearly discontinued and list alternatives on the page.
More in Ecommerce SEO
Faceted Navigation Crawl Control
Use when a category with a few hundred products has generated tens of thousands of crawlable fil...
Category Page Copy That Ranks
Use when category pages sit in positions 8 to 20 for their head term and the page is a bare grid...
Product Descriptions At Scale
Use when you have thousands of SKUs on manufacturer-supplied copy and product pages get impressi...
Product Schema That Earns Listings
Use when product pages are valid in the rich results test but show no price, rating, or availabi...