Question

Out-of-Stock and Discontinued Products: SEO Best Practices

4 min read

Short answer

Handle unavailable products by how long they'll be gone. A product that's temporarily out of stock keeps its page, live and indexable, with the status and structured data updated and alternatives shown. A product that's gone for good either redirects permanently to a genuine replacement or close equivalent, or returns a 404 or 410 when nothing equivalent exists. What to avoid is the middle ground: a "product not found" message on a page that still returns 200, or a redirect to a page that has nothing to do with the product.

Sources

  1. 1developers.google.com

Ask next

Decide by Situation

Situation Page Status code Structured data
Out of stock, returning Keep it, show status and alternatives 200 <!–INLINECODE0–> set to OutOfStock, or BackOrder or PreOrder if you take orders
Seasonal Keep it, show when it returns 200 Update availability with the season
Discontinued, direct successor Redirect to the successor 301 Successor's own markup
Discontinued, close alternatives Redirect to the closest product or category 301 Destination's own markup
Discontinued, no equivalent, page still useful Keep as an information page with alternatives 200 Remove the purchasable offer
Discontinued, no equivalent, no value Remove 404 or 410 Not needed

Temporarily Unavailable Products

  • Keep the URL live. Removing or redirecting a page for a short stock gap throws away a page that will be needed again.
  • Say it clearly on the page: out of stock, expected back date if you know it, and a back-in-stock signup.
  • Update the markup so availability matches the page; an InStock offer on an out-of-stock page tells search engines something the page contradicts. See product schema and rich results.
  • Show alternatives in stock, so the visit doesn’t end there.
  • Keep the content complete. Shoppers still research products they can’t buy today.

Discontinued Products

Redirect when there’s a real equivalent. A 301 to the successor model, or to the closest product, sends visitors and links where they’re useful. Google’s HTTP status code documentation says it uses a 301 “as a strong signal that the redirect target should be processed”, and a 302 as “a weak signal”, so use 301 for permanent changes.

Redirect to a category only when it’s a real alternative. A redirect from a specific product to a general category or the home page doesn’t answer the visitor’s need; when the destination isn’t equivalent, a page that explains the product is gone and offers alternatives can serve better.

Keep a valuable page as information when people still search for the product or it has links: model details, compatibility, parts, a successor recommendation. Remove the purchasable offer from its markup.

Remove pages with no value. A 404 or 410 is fine. Google treats them alike: “All 4xx errors, except 429, are treated the same”, and URLs returning them “are removed from the index” over time. Choose 410 if it’s semantically clearer for your systems; don’t expect a different search outcome.

Avoid Soft 404s

A soft 404 is a page that tells visitors the product isn’t available or doesn’t exist while returning a 200 status. Google says that if returned content “suggests an error”, for example “an empty page or an error message, Search Console will show a soft 404 error.” Return a real 404 or 410 for removed products, or keep a useful page with content and alternatives.

Redirect Hygiene

  • Point straight to the final destination. Successive replacements create chains; Google’s crawlers follow “up to 10 redirect hops” by default, but each hop adds a request. See redirect chains and loops.
  • Update internal links to the destination, so the old URL isn’t linked from your own site.
  • Remove old URLs from sitemaps.
  • Check results in Search Console’s Page indexing report for “Soft 404” and “Not found (404)” statuses.

At Catalog Scale

  • Connect inventory to the page and the markup, so status changes update both automatically.
  • Set default rules: temporary out of stock keeps the page; discontinued goes to a mapped successor, a mapped category alternative, or a 404.
  • Review discontinued URLs periodically for remaining traffic or links that justify a better redirect.
  • Keep Merchant Center feeds in step with page availability; see shopping results and merchant listings.

Seasonal Products

Keep seasonal pages live year-round with their status updated, so the URL and its history are ready when the season returns. Off-season, point visitors to year-round alternatives and offer a signup for the return date. Planning for peak periods is covered in seasonal e-commerce SEO.

When you can’t yet tell whether a product is coming back, treat it as temporarily out of stock and keep the page live with OutOfStock in its markup; apply a redirect, an information page or a 404 only once the product is confirmed as discontinued.

Link profile