Not every missing product is the same
When an item disappears from a store, the right action depends on why. Three situations are worth separating, because they call for different handling:
- Temporarily out of stock. The product will return, perhaps within days or weeks.
- Permanently discontinued, with a replacement. The item is gone, but a successor or close alternative exists.
- Permanently gone, with nothing similar. The product will not come back and the store has nothing comparable.
A common mistake is treating all three the same way, usually by deleting the page. That can leave visitors at an error page and throw away whatever value the old page had earned, such as links from other sites.
Temporarily out of stock
If the item will come back, it usually makes sense to keep the page live. Search engines and shoppers may already know the address, and removing it only to recreate it later is needless churn.
On the page itself, be clear and useful:
- State plainly that the product is unavailable, rather than leaving a buy button that fails.
- Update the availability in any structured data so it matches the visible message. A page that says “sold out” in the text but “in stock” in the markup is inconsistent.
- If you know a restock date, give it, but only if you are reasonably sure. Do not promise something you cannot deliver.
- Offer something to do next: a back-in-stock notification option, or links to similar items.
- Keep the page in its category, perhaps shown lower in the list or marked as unavailable, according to what suits the shopper.
If an item stays unavailable for a long time with no date in sight, reconsider. A page that has said “out of stock” for a year is functionally a discontinued page.
Discontinued with a replacement
Where a clear successor exists, a permanent redirect from the old address to the new product is often appropriate. The key word is relevant. Send people to the page that truly replaces it, not to the home page. Redirecting many unrelated old pages to the home page tends to confuse visitors and is often treated by search engines much like a missing page. The mechanics of permanent versus temporary redirects, and of avoiding redirect chains, are covered in the redirects guide.
An alternative is to keep the old page with a clear note that the item is discontinued, and a prominent link to the replacement. This is useful when people may still look for the old model, perhaps for parts, manuals or comparison, and want to understand what changed. Whether to redirect or keep depends on whether the old page still helps anyone.
Discontinued with no replacement
When there is no suitable substitute, the choice is between keeping an informational page and removing it.
- Keep if the page still serves a purpose: owners seeking accessories, compatible parts or support information, or if the page has meaningful links pointing to it. Mark it clearly as no longer sold and link to the closest relevant category.
- Remove if it has no remaining value. Returning a proper “gone” status is more honest than serving a blank or misleading page. A custom not-found page that offers search and category links helps the visitor. Make sure removed pages really return an error status rather than a normal-looking page saying “not found,” since that mismatch creates what are called soft errors. Also, redirecting to the nearest relevant category can be a reasonable alternative when the category truly covers what the visitor wanted.
Whichever you choose, update the internal links. Menus, related-product blocks and old blog posts that point to a removed page produce broken links, which are worth hunting for in any audit.
Watch the sitemap and the category pages
Pages you have removed or redirected should leave the XML sitemap, which should list the pages you want indexed. Meanwhile, category pages that depend on those products may shrink to nothing, so check for empty or very thin listings. The role of category pages is discussed in a separate article, and a thin one may need merging or pruning.
Writing a simple policy
Stores with large catalogs benefit from a written rule so that decisions are consistent. For example (hypothetical):
- Out of stock for under a set period: keep, show message, update markup.
- Out of stock beyond that period with no restock date: treat as discontinued.
- Discontinued with a close replacement: redirect to it.
- Discontinued without a replacement: keep as an information page if it has ongoing value; otherwise remove.
Adjust the thresholds to your own products. A shop selling seasonal goods will treat a gap very differently from one selling stable basics, and seasonal stock is covered in the article on seasonal pages.
Checking your work
After making changes, crawl the site or sample the affected URLs. Look for redirect chains, unexpected status codes, pages still listed in the sitemap, and internal links still pointing at old addresses. Record what was done and when in a change log so you can later explain any movement in traffic. Search engines take time to adjust, and results vary.