Out-of-Stock Product Pages: Fixing Discontinued Products
Every shop has products that sell out, pause or disappear for good, and each one leaves behind a URL that search engines have already indexed and other sites may link to. Handled badly, those URLs turn into dead ends, soft 404s or pages promising stock you do not have.
This guide is about your own catalogue, not reacting to a competitor. It gives you a simple decision for every unavailable product: keep the page live with honest availability, redirect it to a genuine replacement, or let it return 404 or 410, and shows how to apply that decision across the whole shop.
Why stock status becomes a crawl problem
A product page is not only a sales page. Over time it gathers backlinks from bloggers and gift guides, it ranks for its name and model number, and it appears in Google Shopping and in people's bookmarks. When the item stops being available, the shop has to decide what that address does next, and most shops never make the decision deliberately. Instead the platform's default takes over: the page stays up with a greyed-out button, disappears from category lists, gets deleted by whoever tidies the catalogue, or redirects to the home page because a plugin was set up that way years ago.
Each of those defaults has a cost. The Ecommerce Crawl flags out-of-stock products so you can see how many you have and where they sit. What the report cannot know is your intent for each one: whether stock arrives next week, never, or only as a newer model. That knowledge sits with you, which is why this fix is mostly about making decisions and then applying them consistently.
The four outcomes that go wrong
- Temporary gaps treated as permanent. A bestseller is deleted during a two-week shortage and recreated at a new URL, losing its links and ranking history.
- Permanent losses treated as temporary. Hundreds of discontinued items stay live for years, thin and unbuyable, filling the crawl with pages nobody can act on.
- Blanket redirects. Every removed product is sent to its category or the home page. Search engines may treat those redirects as soft 404s, so the old URL drops out anyway and the visitor lands somewhere that does not answer their search.
- Markup that disagrees with the page. Product structured data still says
InStockwhile the page says sold out, which can cause problems in merchant listings.
The decision table
Put every unavailable product into one of these rows. The row decides the URL's fate, the status code, the availability value and whether the page stays in your sitemap.
| Situation | URL | Status code | availability value | In sitemap? |
|---|---|---|---|---|
| Sold out, restock expected | Keep live | 200 | OutOfStock or BackOrder
if you still take orders | Yes |
| Not yet released, taking orders | Keep live | 200 | PreOrder | Yes |
| Discontinued, a newer model or close equivalent exists | Redirect to the successor | 301 | None (the old page no longer exists) | No, list the successor instead |
| Discontinued, still searched for and linked, no successor | Keep as a reference page | 200 | Discontinued,
or leave the offer out | Optional |
| Discontinued, no successor, little interest | Remove | 404 or 410 | None | No |
The fourth row surprises people. Some products keep attracting searches long after they stop being sold: a popular kettle model, a toy people want spare parts for, a paint colour customers need to match. A page that confirms the item is discontinued, lists its specifications and points to what you sell instead can keep serving those searchers, and it keeps the links pointing at your domain useful. Only do this where there is evidence of demand, such as clicks and impressions in Search Console for the product name.
What a good out-of-stock page shows
A page kept live while stock is away must still be worth landing on. Google has said pages that are effectively empty can be reported as soft 404s, and an unbuyable product page with only a greyed-out button comes close to that. The aim is a page that answers "can I get this, and if not, what now?"
- A clear status near the price, in words: "Out of stock, expected mid-November" or "Temporarily unavailable". Avoid vague phrases that might also mean the page is broken.
- A back-in-stock alert that collects an email address. Remember that this is personal data: say what you will send and keep consent separate from marketing. This is not legal advice; check your own obligations under UK GDPR and PECR.
- Close alternatives in the same size, price band or use, placed high enough to be seen, not buried below reviews.
- The full product content, including description, specifications, photos and reviews. Do not strip the page when stock runs out; that is exactly when it needs to carry its own weight.
Keep the offer in the structured data, change only its availability, and make sure the
value matches the words on the page. The schema.org values are full URLs:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Product",
"name": "Fernhollow Enamel Camping Kettle 1.2L",
"sku": "FH-KET-12",
"image": "https://www.example.co.uk/images/fh-ket-12.jpg",
"offers": {
"@type": "Offer",
"url": "https://www.example.co.uk/products/enamel-camping-kettle",
"price": "34.00",
"priceCurrency": "GBP",
"availability": "https://schema.org/BackOrder"
}
}
</script>
Use OutOfStock when you are not taking orders, BackOrder when you are and
will ship later, and PreOrder for items not yet released. If you send a product feed to
Merchant Center, its availability should say the same as the page and the markup.
Redirects: when they help and when they do not
A permanent redirect is the right move when a discontinued product has a real successor: the same kettle in a new colourway, the 2026 edition of an annual planner, a replacement model from the same maker. A visitor following an old link gets what they were after, and search engines can carry the old page's signals across.
The test is simple. Would a customer who searched for the old product be happy to land on the new one? If yes, redirect. If they would feel misled, do not. A redirect from a specific blue walking boot to a category of mixed boots is borderline; a redirect from that boot to the home page fails the test.
Why category redirects in bulk go wrong
Search engines compare the old and new page. When a large number of unrelated product URLs all redirect to the same category or the home page, the destination does not match what those URLs were about, and the redirects may be treated as soft 404s. The old URL is then dropped from the index much as if it had returned a 404, but the visitor is still sent somewhere confusing. You gain nothing over an honest 404 and lose clarity. A category redirect is reasonable when the category truly covers the same need and the product was one of only a few of its kind in it.
Redirect hygiene
- Redirect straight to the final URL. If a successor is later replaced, update the old redirects so there is no chain.
- Use 301 (or 308) for permanent changes. A 302 tells search engines the move is temporary and keeps the old URL in play.
- Keep redirects in place long term. Links from other sites do not disappear when you remove a redirect a year later.
Letting a product go: 404, 410 and the page people see
When a product has no successor and nobody is looking for it, removing the page is correct. Google treats 404 (not found) and 410 (gone) in very similar ways; both lead to the URL dropping out of the index, and a 410 can be processed marginally faster. Pick whichever your platform makes easy. What matters more is what a human sees.
Make the error page helpful: a search box, links to your main categories, and ideally a short message that the product is no longer sold. Some shops generate a custom "discontinued" error page that uses the product's old category to suggest alternatives while still returning a 404 status. That gives visitors a way forward without pretending the product still exists.
For site-wide 404 clean-up beyond products, the 404 errors guide covers finding and prioritising broken URLs.
Platform notes
Shopify
Products can be set to continue selling when out of stock per variant, which suits back-orders. Deleting a product returns a 404; to redirect, add the old path on the URL redirects screen in the Shopify admin, which sits alongside the menu settings. Archiving or setting a product to draft also removes it from the storefront, so the URL returns 404 unless you add a redirect. Many themes can sort sold-out items to the end of collections rather than hiding them.
WooCommerce
The setting "Hide out of stock items from the catalogue" under WooCommerce, Settings, Products, Inventory removes those products from category pages but leaves the product URLs live. On a large shop that quietly creates orphans: pages still indexed, still in the sitemap, but no longer linked from anywhere. If you use it, make sure important items are still linked elsewhere, or sort them to the end instead. Trashing a product produces a 404; redirects need a plugin or server rules.
Magento and Adobe Commerce
The "Display Out of Stock Products" option in the stock configuration controls whether sold-out items appear in listings. Disabling a product makes its URL return 404. When you change a URL key with "Create Permanent Redirect" enabled, Magento writes the 301 for you, but discontinued-to-successor redirects must be added as custom URL rewrites under Marketing, SEO and Search.
The fix, step by step
Step 1
Export every unavailable product with its data
Run the Ecommerce Crawl and export the products it flags as out of stock, then add the products your platform marks as discontinued, draft or disabled. For each URL, pull clicks and impressions for the last twelve months from the Search Console Performance report, and note any backlinks your link tool shows. You now have one sheet listing every unavailable product with the evidence you need to decide its fate.
Step 2
Put each product in one of four groups
Ask whoever buys the stock whether each item is coming back and roughly when. Label every row as restocking, discontinued with a successor, discontinued but still in demand, or discontinued with no interest. Use the Search Console figures to settle borderline cases: steady impressions for the product name suggest a reference page is worth keeping, while zero traffic and no links mean the URL can simply be retired.
Step 3
Fix the pages that stay live
For
restocking and reference products, keep the full description, photos and reviews, add a plain status
message with an expected date where you know one, and show close alternatives near the top. Set availability
in the Offer to OutOfStock, BackOrder, PreOrder or Discontinued
so it matches the words on the page, and check your Merchant Center feed says the same thing.
Step 4
Redirect discontinued products to true successors
For each product with a genuine replacement, add a 301 from the old URL straight to the new product. Apply the customer test: someone who searched for the old item should be pleased to land on the new one. Where no product passes that test, do not fall back to a category or the home page by default, because unrelated mass redirects are often treated as soft 404s and help nobody.
Step 5
Retire the rest with a 404 or 410
Delete or disable the remaining products so their URLs return 404 or 410, and confirm the code in the browser developer tools Network tab rather than trusting the page text. Make sure the error page offers a search box and links to your main categories. Leave the URLs to drop out naturally; there is no need to request removal in Search Console for ordinary discontinued items.
Step 6
Clean up sitemaps, feeds and internal links
Regenerate your XML sitemap so redirected and removed product URLs are no longer listed, while restocking products stay in. Remove retired items from product feeds, gift guides, blog posts and menus, and point any internal links at the successor product directly instead of through the redirect. Then recrawl with the Ecommerce Crawl to confirm no internal link leads to a 404 or a redirect.
Step 7
Write the policy into your product workflow
Turn the decision table into a short checklist for whoever manages products, covering when an item counts as discontinued, who picks the successor, and who adds the redirect. Add a column to your product sheet for status and successor URL. Review the out-of-stock list monthly, so items stuck without a date for months get a decision instead of sitting in the crawl indefinitely.
Edge cases
- One variant sold out. If a single size is unavailable, the product is still in stock. Mark that variant's offer as out of stock and leave the page alone. Variant URL handling is covered in Fixing variant URL strategy.
- Products that vanish and reappear often. Small-batch and handmade items can sell out every week. Never delete them between batches; keep the page and use back-order or an alert.
- Seasonal ranges. Items that return every year need a slightly different approach, set out in Fixing seasonal product handling.
- Legal or safety withdrawals. If a product is recalled, remove it quickly and follow the recall notice requirements that apply to you. SEO considerations come second.
- Several old products, one successor. It is fine for many discontinued models to redirect to one new model, provided each is a genuine predecessor.
1. Should I noindex out-of-stock products?
Not if they are coming back. A noindex removes the page from search results, and when stock returns it has to be crawled and indexed again, often losing its position in the meantime. Keep temporarily unavailable products indexed with honest availability and useful alternatives. Noindex is only worth considering for discontinued products you are keeping purely for existing customers, such as manuals or spare-part lookups, where you do not want the page competing in search against the products you actually sell.
2. Is it better to return 404 or 410 for a discontinued product?
In practice there is little difference. Google treats both as a signal that the page is gone and drops the URL from its index, and a 410 may be acted on slightly sooner. Choose whichever your platform or server makes easy and apply it consistently. The more important points are that the status code really is 404 or 410 rather than 200, and that the error page gives visitors a search box and links to your main categories.
3. Can I redirect all discontinued products to their category?
You can, but it often does not work the way people hope. When lots of unrelated product URLs redirect to one category, search engines may decide the destination is not a real replacement and treat those redirects as soft 404s, so the old URLs drop out anyway. A category redirect is reasonable when the category genuinely meets the same need and the product was one of a few similar items. Otherwise a successor redirect or an honest 404 is clearer.
4. How long can a product stay out of stock before I should remove it?
There is no fixed limit from search engines. The practical test is whether you can say when it will return. If the supplier gives a date, keep the page live however long that is. If an item has been unavailable well past your normal restock cycle and nobody can give a date, treat it as discontinued and decide between a successor redirect, a reference page or removal. A monthly review of the out-of-stock list stops items drifting for years.
5. What availability value should I use in Product schema?
Use the schema.org URL that matches what the page tells shoppers. InStock for items you can ship now, OutOfStock when you are not taking orders, BackOrder when you accept orders and will ship later, PreOrder for products not yet released, and Discontinued for items you will never sell again but are keeping as a page. Write the full form, such as https://schema.org/OutOfStock, and make sure any product feed you send to Merchant Center says the same.
6. Will out-of-stock products hurt my rankings?
A handful of well-handled out-of-stock pages will not. Problems come from scale and neglect: hundreds of thin, unbuyable pages that make up a large share of what crawlers find, pages whose markup contradicts the visible stock status, or popular items deleted and recreated at new URLs. If each page stays useful while stock is away, and discontinued items are dealt with promptly, stock changes should not drag down the rest of the shop.
7. Should out-of-stock products stay in my XML sitemap?
Products that will be restocked should stay in, because they are live pages you want crawled and indexed. Products you have redirected should come out, and the successor URL should be listed instead. Products returning 404 or 410 should also be removed, since a sitemap is meant to list URLs you want indexed. Keeping dead URLs in the sitemap wastes crawling and produces errors in the Search Console sitemap and page indexing reports.
The Ecommerce Crawl maps the URLs on your store and flags out-of-stock products, alongside duplicate product URLs, orphan products and faceted navigation getting out of hand.
Open Ecommerce Crawl Fixes โ