“Out of stock” can mean a short gap or a permanent end. Imagine a Malaysian kitchen-appliance shop sells two rice cookers: one should return next month; the other has been discontinued. Treating both pages as deleted—or both as current offers—would mislead shoppers. First establish which product can return.
First, Classify the Product's Real Status
Check the supplier and store records. Is this exact model coming back? Can a shopper order it now? Is there a genuinely suitable successor? A temporarily unavailable product may still deserve a page where people can identify or compare it. A permanently retired item needs a different outcome.
Do not use “out of stock” as a permanent holding status for every discontinued item. If you send products to Google Merchant Center, its availability rules distinguish temporarily out-of-stock items from permanently discontinued products; the latter should be removed from the product data source. This is a feed decision, separate from whether an informative page remains useful on your website.
Keep a Temporary Stock Gap Honest and Useful
If the rice cooker will return, keeping its existing URL lets shoppers confirm the model, specifications and current status. Say “out of stock” prominently and disable ordering if orders are not being accepted. If you accept backorders, state that clearly and show the expected shipping date; Merchant Center requires an availability date for a backorder offer. If you do not know when stock will return, do not invent a date. Offer a back-in-stock notification or a clearly identified alternative if your store supports it.
A temporary stock gap is not, by itself, a reason to redirect the page to the category or return a 404. But the page must still contain useful, accurate product information; a near-empty “unavailable” message can look like a soft 404 to Google. If several sizes or colors share a page, identify which variant is unavailable rather than making the whole item appear sold out.
Choose an Outcome for a Retired Product URL
When the model will not return, ask whether another page solves substantially the same shopping need. If the manufacturer has a successor with the necessary capacity and features, and you have verified those details, a permanent redirect from the old product URL to that replacement may help shoppers. Do not infer compatibility from a similar name.
If no close replacement exists and the old page no longer has useful independent content, remove the page and return a genuine 404 or 410. A custom error page can suggest a category, but its HTTP response must still be an error. Redirecting every retired item to the homepage misleads visitors and may be treated as a soft 404.
An old page with useful manuals or compatibility history can instead stay as an informational page. Mark it discontinued, remove its active offer and Merchant Center listing, and do not suggest it can still be bought. An empty sales page does not become useful just because its URL stays live.
The general rules for permanent redirects, missing pages and actual HTTP responses are explained in our redirects and status codes guide.
Keep the Page and Store Data in Agreement
For a saleable item, the visible page, checkout, Product structured data and Merchant Center feed, when used, should tell the same stock story. Google can reject Merchant Center product data when the feed says “in stock” but the landing page says otherwise. Do not treat valid markup as proof that the inventory is correct. Our Product structured data guide explains the markup checks; the product page guide covers the other buying details.
When a page is redirected or removed, update category cards, related-product modules, internal links and the XML sitemap. Link directly to a replacement instead of through the old redirect. For a temporary gap, the category may still link to the accurate product page if its unavailable status is clear.
Audit Three Changed Product URLs
- Temporarily unavailable: Open the live page and selected variant. Confirm the stock label, button, relevant alternatives, visible price and any feed or markup availability value agree.
- Retired with a verified successor: Test the old URL's first HTTP response and destination. A permanent redirect should lead directly to a page that genuinely meets the old need.
- Retired without a replacement: Confirm the removed URL returns a real
404or410, not an empty200page. Remove it from active listings, internal links and the sitemap.
Record the action against each SKU rather than setting one sitewide “out of stock” rule. The ecommerce SEO overview puts these decisions in the wider store page map.
Frequently Asked Questions
What Do You Do When the Product Is Out of Stock?
Confirm whether the gap is temporary. For a returning item, keep a useful page with honest stock information and relevant options. For a permanently retired item, choose a verified replacement, a useful informational page, or a genuine 404 or 410 if no useful page remains.
Should I Redirect a Discontinued Product to My Homepage?
No, unless the homepage genuinely answers the same need, which is unusual. Redirect to a close replacement only when it exists; otherwise use a proper 404 or 410 for a removed page.
Should I Remove a Temporarily Out-of-Stock Product From My Sitemap?
Not solely because stock reached zero. Keep the URL in the sitemap if it is still a useful, indexable product page you want Google to discover. Remove URLs that you permanently redirect or retire.


