Keep out-of-stock product pages live when the shortage is temporary. For discontinued products, we recommend keeping a useful page, redirecting to a close replacement, or returning a proper removal status, depending on what still helps your visitors.
The goal is clear availability without losing useful product information or sending shoppers somewhere unrelated. Start by separating temporary inventory problems from permanent product changes, then match your page content and technical settings to that decision.
Key Takeaways
- Keep temporarily unavailable products accessible, with an accurate stock message and a useful next step.
- Review discontinued pages individually. Search demand, backlinks, product information, and relevant replacements all matter.
- Keep visible availability, structured data, and Merchant Center information consistent. Avoid blanket redirects or noindex rules based only on inventory status.
Choose a Plan for Out-of-Stock Product Pages
A sold-out label tells you about inventory. It doesn't tell you whether the page should disappear.
First, decide whether the product is expected to return. Then assess whether the page still answers a useful question or has a suitable replacement.
Use this decision table to choose the page's technical response.
| Product situation | Recommended approach | HTTP status |
|---|---|---|
| Temporarily unavailable | Keep the product page accessible | 200 OK |
| Discontinued but still useful | Retain an informative product archive | 200 OK |
| Discontinued with a close replacement | Redirect to that replacement | 301 |
| Permanently removed with no useful content or replacement | Return a genuine removal response | 404 or 410 |
The important distinction is product availability versus page usefulness. A discontinued item can still need a useful page. An empty placeholder usually doesn't.
Keep Temporary Stockouts Useful and Accessible
Temporary shortages usually call for an availability update, not a URL change. Google's guidance on temporarily limiting an online business supports keeping useful pages accessible while purchasing is restricted.
Preserve the URL and product information
Keep the established address, product description, images, specifications, reviews, and compatibility information. The page should continue returning 200 OK.
For an indexable product page, keep its canonical pointing to its preferred URL. Don't switch the canonical to a category or another product simply because stock reaches zero.
We recommend keeping valuable temporarily unavailable products in the XML sitemap. Removing them automatically creates unnecessary changes whenever inventory fluctuates.
Our product page SEO guide covers the useful information worth preserving beyond a basic manufacturer description.
Give shoppers a clear next step
Place the stock message near the price and purchase controls. Shoppers shouldn't discover the shortage only after trying to check out.
Show a restock estimate only when you have reliable information. Otherwise, offer a back-in-stock notification or relevant alternatives without promising a delivery date.
If you accept backorders, explain the purchasing terms and expected fulfillment clearly. If purchases aren't possible, disable the purchase action and provide another useful option.
Keep the original product details visible. Someone researching dimensions or compatibility may still find the page valuable before buying later.
Give Discontinued Products a Clear Outcome
Permanent discontinuation needs a separate decision. We recommend reviewing the page's usefulness before choosing a redirect or error response.
Retain pages that still answer questions
A discontinued product page can help people identify a model, compare specifications, find compatible accessories, or access instructions.
Keep it live when that information remains useful. State that the product is discontinued and remove purchase messaging that suggests otherwise.
Label alternatives clearly. Visitors should understand which product they searched for and which replacement you're recommending.
Relevant traffic and backlinks support the case for retention, but the page still needs substance. An old URL with only a product name and a sold-out notice gives visitors little help.
Redirect only to a close replacement
Use a 301 redirect when a replacement meets substantially the same need. Compare product type, intended use, compatibility, and major specifications before choosing the destination.
A newer model may be appropriate. An unrelated bestseller usually isn't.
Avoid sending every retired product to the homepage or a broad category. That creates a confusing handoff and can lead to soft 404 treatment.
A backlink is a reason to review a retired page carefully, not a reason to redirect it somewhere unrelated.
Remove pages that no longer provide value
When the product won't return, the page has no useful remaining content, and no close replacement exists, return 404 or 410.
A 404 means the resource wasn't found. A 410 communicates deliberate permanent removal. Either is preferable to an empty page returning 200 OK.
You can still provide navigation and product suggestions on the error page. The server response must remain an actual error status.
Keep Product Data Aligned With Availability
Your stock message, checkout behavior, structured data, and shopping feed should tell the same story. Accurate information reduces confusion before and after a visitor reaches your store.
Update structured data with the page
When stock changes, update the offer's availability information rather than leaving an in-stock claim in the markup.
Google's merchant listing structured data guidance covers product details such as availability, price, shipping, and returns. Those details should reflect the product information visitors can see.
For a discontinued product with no remaining offer, remove obsolete offer information while retaining accurate product details where appropriate.
We recommend testing representative pages after inventory changes, theme updates, or app installations. Our guide to rich result warnings and errors helps separate markup problems that need attention.
Match feeds, variants, and checkout
If you use Google Merchant Center, update its availability data alongside your website. Don't leave a shopping listing advertising stock that the landing page can't supply.
Treat variants individually. One unavailable size or color doesn't mean every version of the product is sold out.
The selected variant, displayed price, stock message, and checkout availability should agree. Review cached pages and third-party feeds too. A correct inventory database won't help shoppers if the storefront continues showing outdated information.
Protect Backlinks and Product Discovery
Before retiring a page, review its organic traffic, search queries, referring links, and role in your catalog. We prioritize pages that still attract relevant visitors or support product research.
Google Search Console can show which searches bring people to a product URL. Our Search Console guide explains the reports useful for assessing visibility and indexing.
Backlinks need context. A link recommending an old product for a particular use may remain valuable when the page explains that product accurately. Redirecting it to a different type of item can break that connection.
Next, adjust internal navigation. You can move unavailable items below purchasable products in category listings while preserving a clear route to useful product pages.
Keep temporarily unavailable pages discoverable through relevant categories, breadcrumbs, or related content. For retained discontinued pages, a support or archive section may be more appropriate than prominent shopping placement.
After a permanent redirect, update internal links to point directly to the destination. Remove deleted and redirected URLs from XML sitemaps. Keep only the preferred, indexable URLs there.
Test Technical Signals After Inventory Changes
Inventory automation can change more than the stock label. Themes, plugins, and custom rules may also alter indexing, links, and HTTP responses.
Reserve noindex for a clear indexing decision
We don't recommend applying noindex automatically when inventory reaches zero. It asks search engines to exclude the page, even when the shortage is temporary and the content remains useful.
Use it selectively when a page needs to remain accessible but has no intended role in organic search.
Google's noindex implementation guidance explains that Google must crawl a page to read the directive. Blocking that URL in robots.txt can prevent discovery of the noindex instruction.
Test the response, not just the message
A page displaying "product not found" while returning 200 OK can create a soft 404. The visible message doesn't replace the server's HTTP response.
Use Screaming Frog to review affected URLs in bulk. Inspect representative pages in Google Search Console, then test their live status, canonical, indexability, and rendered content.
Our guide to fixing soft 404 errors covers the difference between improving a useful page and removing an empty one.
Finally, test the shopper's path on mobile. Availability messages, alternative links, and notification forms should remain easy to use after the inventory update.
Frequently Asked Questions
Should seasonal products keep the same URL?
Yes, when the same product is expected to return and the page remains useful. Keep the address stable and explain its current availability. Seasonal stock changes don't automatically require a new URL, redirect, or removal response. Preserve product information that helps visitors plan a later purchase.
Should a discontinued page lose all its structured data?
Review the information rather than removing everything automatically. Keep accurate product details on a useful retained page, but remove obsolete offers when you no longer sell the item. Google's product snippet documentation describes supported Product markup for those details.
Is a temporary redirect helpful during a stockout?
Usually, keeping the original page accessible is more useful. Visitors can review the exact item, understand the shortage, and choose an alternative themselves. A temporary redirect sends them elsewhere before they see that context. We recommend offering replacement links on the page instead.
Keep Availability Clear and Page Decisions Consistent
Out-of-stock product pages need decisions based on their future and their usefulness. We recommend preserving temporary stockouts and reviewing discontinued products individually.
Keep content, availability, and technical signals aligned. That gives shoppers an honest explanation and gives search engines a consistent page to understand.
Start with your most valuable unavailable products, then apply the same decision process across the catalog.





