serkankaya.
Türkçe sürüm
Let’s work together ↗

Out of Stock Products SEO: Delete, Redirect or Keep the Page?

How should out of stock products be handled for SEO? Decisions on 301, 404, 410 and structured data for temporary stockouts, variants and discontinued items.

The short answer to SEO for out of stock products is this: if the product will be sold again, the page stays live, the stock status is updated and users are shown alternatives. If the product has been permanently discontinued, it is redirected with a 301 to its direct replacement or to the closest subcategory. If there is no replacement, the page returns a 404 or 410. The question that drives the decision is not technical: will the product come back?

I covered the overall framework for store SEO in my ecommerce SEO guide, where I touched on sold-out products briefly. In this post I go into detail: which HTTP response to return in which situation, what to show on the page, how to update structured data and the product feed, and how to automate the decision across a catalog of thousands of products.

Why do out of stock product pages matter?

Out of stock product pages matter because the search visibility, internal and external links and user demand a page has collected do not disappear when the product sells out. A product page earns rankings for brand and model searches over months. It receives links from other sites and internal links from category pages. When the page is deleted, all of that is wasted at once.

The second reason is scale. In a large catalog, dozens of products sell out and come back every day. Making a separate decision for each one is not possible. Without a written rule, different people on the team make different decisions. One product gets deleted, another gets redirected to the homepage, and yet another is removed from the index with noindex.

The third reason is user experience. A user arriving from search who sees “out of stock” and finds no other suggestion leaves the site. If the same user is offered a similar product, an estimated restock date or a notification option, the visit can turn into a sale or a sign-up.

How do you determine the type of stockout?

The type of stockout is determined by whether the product will be sold again and whether orders are being accepted. The technical decision comes after this classification. I split products into four groups:

SituationAccepting orders?PageStock value
Temporary stockoutNoStays liveOutOfStock / out_of_stock
BackorderYesStays liveBackOrder / backorder
Not yet releasedYesStays livePreOrder / preorder
Permanently discontinuedNo301, 404 or 410Discontinued (during transition)

The values in the table come from two separate vocabularies. The values on the left are structured data values from Schema.org’s ItemAvailability list.[4] The values on the right are the values of the availability attribute in a Google Merchant Center product feed. According to the Merchant Center help page, you use out_of_stock if you are temporarily not accepting orders for the product, and backorder if the product is not available but you are accepting orders. preorder is only for new products that have not been released yet.[5]

Product sold out Will it come back? Yes: page stays live No: 301 or 410
The first decision for an out of stock product is whether it will be sold again.

Seasonal products need separate attention. A coat model that returns every winter does not count as permanently discontinued. I keep these pages live outside the season and state the next season’s date on the page. Opening a new URL every year resets the signals the previous season collected.

Should an out of stock product page be deleted?

Short answer

Should an out of stock product page be deleted?

If the product will come back in stock, the page should not be deleted; it should stay live. The stock status is updated on the page, in the Product structured data and in the Merchant Center feed. Similar products and a “notify me when available” option are added to the page. A decision to delete or redirect is made only when the product is permanently discontinued and the page’s search value has been assessed.

The three most common mistakes with temporary stockouts are deleting the page, adding noindex to it and removing the product from its category entirely. All three lead to the same result. The page drops out of search results, and when the product returns you have to wait for it to be recrawled and reindexed. During that time the product may be invisible exactly when demand for it is highest.

On a temporarily sold-out product page I keep the following:

  • HTTP 200 response: The page opens normally. A stockout does not turn the page into an error page.
  • Content: The product description, images, specification table and FAQ stay in place. Stock status alone does not make this information worthless.
  • Canonical URL: The page’s canonical tag keeps pointing to itself.
  • Sitemap: The URL is not removed from the XML sitemap.
  • Internal links: The product is not removed from the category listing entirely. It can be moved to the end of the list or shown with an “out of stock” filter.

What if only one variant is sold out?

If only one color or size is sold out, the product page stays as it is, and the sold-out variant is marked visibly but cannot be selected. If the variants share one URL, the stock status of each offer (Offer) in the structured data is updated separately. If the variants have separate URLs, the sold-out variant page also stays live under the temporary stockout rule. I also covered variant structure and canonical setup in my category page SEO post.

What should an out of stock product page include?

An out of stock product page should clearly show the user’s next step. The page should not end with a “product unavailable” message; it should lead the user to an option they can act on. I use four elements for this:

  1. A clear stock message: The “out of stock” notice appears next to the price and in place of the add to cart button. Users should not add the product to the cart and only find out at checkout.
  2. An estimated date: If the restock date is known, it is stated. If it is not known, no date is invented; only the notification option is offered.
  3. Notify me when available: Users leave an email address or phone number and get an alert when the product arrives. The form also shows how much demand there is for each product and gives the purchasing team data on restocking priority.
  4. Alternatives: In-stock products from the same category with a similar price and features are shown. Instead of a random “best sellers” list, products that can genuinely replace it are chosen.

A “notify me when available” form is a personal data collection tool. In Turkey, under KVKK (Turkey’s personal data protection law), a privacy notice must be shown, and separate consent must be obtained if marketing messages will be sent beyond the notification. These two consents should not be combined into a single checkbox.

Should discontinued products get a 301 or a 404?

For permanently discontinued products, the choice depends on whether the product has a direct replacement and on the page’s search value. If there is a direct new model or a very close equivalent, a 301 redirect is used. If there is no replacement and the page has no traffic or links, a 404 or 410 is returned. I explained the details of redirect rules in my 301 redirect guide.

Google’s redirect documentation describes a permanent server-side redirect (301 or 308) as the most reliable method for content that has moved permanently.[2] For a redirect to work, however, the target has to be relevant. When users search for the old product, the page they are redirected to should offer something close to what they were looking for.

Wrong redirect

  • All sold-out products go to the homepage
  • Users cannot find the product they searched for
  • There is no relationship between the target and the old product
  • Redirects form chains

Right redirect

  • The product goes to its direct new model
  • Without an equivalent, it goes to the closest subcategory
  • The target page meets the same need
  • Each redirect is a single hop
Before redirecting a discontinued product, check whether the target page meets the same need.

Is there a difference between 404 and 410?

The practical difference between 404 and 410 is small as far as Google Search is concerned. According to Google’s documentation on HTTP status codes, all 4xx errors except 429 are treated the same: the crawler reports that the content does not exist, a URL that was previously indexed is removed from the index, and crawl frequency gradually decreases.[1] The 410 status code (Gone) is a clearer response for stating that the product was removed deliberately and permanently. I use 410 for products removed on purpose, and 404 for URLs that were mistyped or never existed.

What I never do is leave a removed product page as an empty “product not found” page with a 200 response. Search Console reports such a page as a soft 404. The server says “the page exists” while the content says “the page does not exist”, and the two signals contradict each other.

An old product page with links and steady search traffic can be kept even if it has no replacement. In that case the page stops being a sales page and becomes an information page: it states that the product is no longer made, keeps the specifications and usage information in place, and links to products that can replace it. For users looking for spare parts, compatibility or a user manual, this page is still useful.

How is stock status shown in structured data?

Stock status is shown with the availability field inside offers in Product structured data. Google’s merchant listing documentation describes marking up information such as price and stock status on product pages with an Offer object.[3] The value is a URL from Schema.org’s ItemAvailability list.

{
  "@context": "https://schema.org",
  "@type": "Product",
  "name": "Sample Product",
  "sku": "SMP-001",
  "offers": {
    "@type": "Offer",
    "url": "https://www.example.com/product/sample-product/",
    "price": "1499.00",
    "priceCurrency": "TRY",
    "availability": "https://schema.org/OutOfStock"
  }
}

This field must match the visible information on the page. If the page says “out of stock” while the structured data still says InStock, users and search engines are being told different things. I covered the full Product markup in my Product schema post.

The same consistency applies to the product feed. If the feed sent to Merchant Center reflects stock changes on the site late, Shopping ads and free listings keep showing the sold-out product. I covered feed update frequency and attribute mapping separately in my product feed optimization post.

How do you automate the stock rule on sites with thousands of products?

On sites with thousands of products, the stock rule is managed with a written decision table and an automation that applies it, instead of deciding by hand for each product. Because of my software development background, I see this as a data problem. Stock status is already stored in the product database. What is usually missing is only the answer to “will the product come back?”

For that answer, adding a single field to the product record is enough: discontinued (yes/no) and, if any, replacement_product. The rule engine works like this:

  • If stock is zero and discontinued is no, the page returns 200, availability becomes OutOfStock and the alternatives module is turned on.
  • If discontinued is yes and replacement_product is filled, a 301 redirect is created automatically.
  • If discontinued is yes and there is no replacement, the page’s organic traffic over the last 12 months and its external links are checked. If it has value, the page stays as an information page; otherwise it returns 410.

I do not assume this setup can be built the same way on every platform. Hosted ecommerce platforms may have limited settings for redirects and status codes. In that case, at the very least the decision should be kept in a table and applied weekly.

Out of stock products checklist0/8

Conclusion

Managing out of stock products starts with a single question: will the product come back? If it will, the page stays live, the stock information is updated on the page, in the structured data and in the feed at the same time, and users are offered alternatives and a notification option. If it will not, the product is redirected with a 301 to a relevant target or closed with a 404/410. Bulk redirects to the homepage and noindex during temporary stockouts are two shortcuts to avoid.

As a next step, pull a list of the products on your site that sold out in the last three months and check which decision was applied to each. If the decisions are inconsistent, first put the rule above in writing. You can see how I handle technical SEO together with advertising and feed management on my SEO services page.

Key terms

Out of stock product
An out of stock product is a product whose page is live on an ecommerce site but which cannot be purchased at the moment. The situation can be a temporary stockout, a backorder or a permanent discontinuation, and each requires a different SEO decision.
410 status code
The 410 status code is an HTTP response in which the server reports that the requested page has been permanently removed and will not come back. Google treats a 410 like other 4xx codes and removes the URL from its index over time.
Notify me when available
Notify me when available is a feature on an out of stock product page that lets users leave an email address or phone number to be alerted when the product is back in stock. It preserves purchase demand and shows which product should be restocked first.
ItemAvailability
ItemAvailability is the Schema.org list of values that describes whether a product can be purchased. It includes values such as InStock, OutOfStock, PreOrder, BackOrder and Discontinued, and is used in the availability field of Product structured data.

Frequently asked questions

Should an out of stock product page be deleted?

If the product will come back in stock, the page should not be deleted. It stays live, and the stock status is updated on the page, in the structured data and in the product feed. A decision to delete or redirect is made only when the product is permanently discontinued.

Should I add noindex to an out of stock product page?

Adding noindex to a temporarily sold-out product usually does harm. The page drops out of the index, and when the product returns you have to wait for it to be recrawled and reindexed. Noindex can only be considered as a temporary intermediate step for pages that have no search value and will be removed permanently.

Is it right to redirect sold-out products to the homepage?

No. A user looking for the product will not find it on the homepage, and the redirect points to an unrelated target. A permanently discontinued product should be redirected with a 301 to its direct replacement model or to the closest subcategory.

Should I use 404 or 410?

According to Google's documentation on HTTP status codes, all 4xx codes except 429 are treated the same, and the URL is removed from the index over time. In practice the difference between 404 and 410 is small. A 410 is a clearer signal that the product was removed deliberately and permanently.

Do out of stock products lose rankings?

As long as the page stays live and keeps its content, a change in stock status alone does not remove it from the index. However, if users leave the page quickly and it stays unpurchasable for a long time, its visibility in search results may weaken over time. That is why offering alternatives and a notification option on the page matters.

Sources

  1. Google Search Central: How HTTP status codes, and network and DNS errors affect Google Search
  2. Google Search Central: Redirects and Google Search
  3. Google Search Central: Merchant listing (Product, Offer) structured data
  4. Schema.org: ItemAvailability
  5. Google Merchant Center Help: Availability [availability]