Skip to content

Handling Out of Stock & Removed Product Pages

By Matthew Edgar · Last Updated: January 19, 2024

On an ecommerce site, products can end up out of stock temporarily but will come back soon. Do you remove the out of stock product page or leave it on the website until it is back in stock?

Products can also be removed permanently from the site. Should you remove the page permanently or leave it in place to continue getting SEO traffic?

In this article, I’ll review how you handle both a temporary removal and a permanent removal while minimizing the impact to your website’s SEO performance.

Out of Stock: Temporary Removal

If an item is temporarily out of stock, the first question to answer is if you want customers to still be able to find this out of stock product on your website. There isn’t a correct answer to this question. It depends on the nature of the product and the nature of your business.

Let’s say the product is important to your business and that product is something your business is known for selling. Well, in that case, you’d probably still want people to find the product even if it isn’t available right now. Plus, you’d want that product page to continue performing well once the product is back in stock. This is the scenario I recommend to almost every ecommerce business.

That said, there are exceptions. For example, you might have a contractual obligation to limit the number of people reaching that product’s page while it is out of stock. In this case, you want to limit how many people are able to find the product page while it is out of stock. You may also need to prevent anybody from finding this product while it is out of stock.

The thing to remember, though, while making that determination is that organic search doesn’t come with an easy on-or-off switch. If you pull a product page out of search results, it will take work and time for that product page to return to the search results. Given that, as you weigh your options about whether people should or shouldn’t find the page on your website about the out of stock product, you should also factor in how important organic traffic is to this particular page. The more important organic traffic is, the more likely you’ll want people to continue finding this product page in search results even if it happens to be out of stock. That way once the product is back in stock, traffic remains the same as it was before the product went out of stock.

Option #1: Don’t Let People Find the Temporarily Out of Stock Product (Not Good For SEO)

With this option, you want to do all you can to discourage the discovery of the product page. There are two ways to approach this: minimizing how many people find the page and preventing people from finding the page.

Minimize Discovery of Out of Stock Page

The first step is minimizing the number of links referencing that product page. A common technique is moving out of stock products to a separate area of category listing pages. That out of stock listing area is typically somewhere a little harder to find on the website as you don’t want to draw too much attention to it. People may still find the product page, but you are minimizing how many people can. You want to leave some links to avoid orphaning the page.

For similar reasons, you can remove temporarily out of stock product pages from the XML sitemap. Search engines won’t remove the page from their index, but they may stop giving the page as much attention as they did before. Note that between the removed XML sitemap and the reduction in internal links referencing the product page, you do run the risk of search engines lowering the page’s ranking position and, therefore, losing traffic to this page. Internal links are important to help search engines understand the page’s importance and why the page should rank. This is what makes this option very challenging for SEO; taking a page out of search results is much easier than getting the page back into search results.

Prevent Discovery of Out of Stock Page

A more aggressive approach is to turn off the product page while it is out of stock and remove every link to the page, including all links in the XML sitemap. It is as if the product never existed on your website. People and robots who attempt to access that product’s page will instead see a 404 not-found error message telling them that the page has been removed.

This option is the best way to guarantee nobody finds this out of stock page, but it is also the hardest option to undo once the product is back in stock. After seeing the 404 not-found error message, though, customers may be reluctant to return to the website thinking it is full of errors, affiliates might be reluctant to update links to send people back to the product for fear it will be turned off again, and search engines may not catch the changed status preventing the page from returning to search results.

On a related note, using noindex tags to prevent the out of stock page from ranking in search results works like a 404 error message where search engines are concerned. As John Mueller noted, “we will assume that [a noindex] is kind of like a 404 page and we don’t have to crawl it that frequently” and “fluctuating with the noindex meta is counterproductive…if you really want those pages to be indexed every now and then”. The only advantage of a noindex is that it is only presented to search robots and not to users, unlike a 404 not-found that would be presented to bot and human visitors alike.

Bottom line: only use this option if you really don’t care about the page’s SEO performance once the product is back in stock and if you are prepared to work to get the page performing again once the product is back in stock.

Option #2: Let People Find the Out of Stock Product (The Best SEO Option)

If you have decided to let people (and robots) see the out of stock product page, you want to keep the page active on your website. The page shouldn’t redirect anywhere. The page should return a status 200 to indicate it is okay. All links to the page should be left in place, including links on the XML sitemap. Other than altering the content to mention the product is out of stock, nothing else on the product page should change while it is in the out of stock state. Images, additional content, videos, and so on should all be kept on the page exactly as they were when the product was in stock.

Your main focus in this option needs to be on keeping that product page purposeful by delivering a good out of stock user experience by doing things like offering alternatives and giving clear messaging about when the product will be back in stock. You could even let people subscribe for notifications when the product is back in stock. In essence, you don’t want the out of stock product page to seem like a dead end—sure, people can’t buy the product, but what else could they do? What content could be included on this page to help people find value in this page even if they can’t buy the product at this time?

The more you can demonstrate the page’s purpose, the better your chances of not hurting the page’s SEO performance while the product is out of stock. What we are trying to avoid here is Google’s bots thinking that the out of stock page is an error page that is no longer helpful for the end user. If the bots think it is an error page, then you run the risk of the page being removed from search results as any error page would be. A product page that says nothing more than “Product X is out of stock right now. Check back later.” will probably be miscategorized as an error page and runs the risk of falling out of search results.

All that said, you do want to communicate to search engines that the product is out of stock by using product schema. You can change the itemAvailability attribute from to instead. Note that Google supports other availability attributes including LimitedAvailability or SoldOut, which can also be used to communicate more details about the stock status than simply noting if the item is or isn’t currently in stock.

Permanent Removal

Next, let’s talk through permanent removals. Here again, we start with a core question you’ll need to address for your company: Do you want people to see the removed product page on your website?

If you are permanently removing an item your company has carried for years and have plenty of alternative products to suggest as a replacement, chances are it is perfectly fine for people to see the page about the removed product. If people reach the product page, you can suggest those alternative products and deliver a satisfying experience.

On the other hand, you may be removing the product and have no related alternative products to offer. The product page would no longer deliver a good experience. You may also remove a product page due to negative customer feedback and likely would not want people to find the product ever again.

Option #1: Let People Find the Permanently Removed Page

If people can find the removed page, as with the temporary removal, your focus needs to be on improving the page’s user experience by giving people a reason to visit the page and by giving search engines a reason to keep this page indexed even if people can’t purchase it. In most cases, that means offering related products that people can buy instead of the product that is no longer available. That could be as simple as a list of related products or it could be a more involved guide discussing the details of each product and how they compare to the removed product.

Alternatively, the content offered on the removed product page might be warranty information or instruction manuals that are of value to consumers who purchased the product before it was removed from the website. Ultimately, the better and more valuable the content, the better the chances the removed product page will continue to rank in search results and get some traffic.

Because you still want people and robots to find the page about the permanently out of stock product, you want to continue linking to the removed page. Possibly, though, instead of linking to the page from the main category pages, you can link to the page from a “Discontinued” category page. By reducing the number of links referencing the page, the page will start to lose rankings in search results. If you intend for this page to rank in search results, the removed product page should continue to be listed in the XML sitemap.

You do want to communicate the removed status to search engines, though, and you can do so via product schema. On the removed product’s page, the itemAvailability schema should be set to Discontinued. This indicates very clearly that this is no longer a product you are carrying.

Eventually, though, the removed product page will typically fall out of search results because robots understand that people will see less value in visiting the page. When exactly this happens will vary depending on the nature of the product—it could be weeks, months, or years depending on the product’s popularity. As traffic dwindles to the page and as the page falls out of search results, you will want to remove this page permanently and stop allowing people and bots to access the page. In other words, Option 1 will eventually become Option 2.

Option #2: Don’t Let People Find the Permanent Removed Page

There are two ways of removing a page: you can redirect that page somewhere else or you can turn the page off, resulting in an error message.

Before I discuss these options, either way, you’ll want to remove all links referencing the removed product. That includes removing links contained in the XML sitemap. Removing links and removing the references in the XML sitemap will remove the signals telling robots to crawl the page and remove the ways visitors can access the page.

Remove by Redirect

With this option, you redirect the URL of the removed product page to a different URL on your website. The URL redirected to should be highly relevant to the removed product. For example, you may have removed an old version of a product from your website but you have a new version available. In this example, you could redirect that removed product’s URL to the URL for the new version of the product.

If a redirect destination is not relevant, visitors and robots will be confused by the redirect. One common example of this is removed product URLs that redirect back to a category page. This is confusing because visitors and robots thought they were going to see a specific product, but now they see a list of many different products. This can work in some scenarios if the category is very specific—I was looking for a specific brand of lawnmower, but now you are showing me a list of other lawnmowers from the same brand your website offers.

If you do implement a redirect, whether to a category or another product, you can ideally show a message explaining the redirect. For example, on the top of the page you’ve redirected to, you could place a message that explains the product the customer was trying to access is no longer available and you’ve brought them to this page instead. Typically, this type of message can include a phone number or email address for support should there be any questions or confusion. The idea behind this message is to reduce any confusion or friction that can be caused as a result of the redirect.

If you do implement redirects, do not, under any circumstances, redirect back to the home page. The home page is too generic a page and covers too many different subject areas. As a result, the home page will never be relevant enough to the product page you have removed from your website; a redirect to the home page will confuse users even if an error is presented. Further, Google’s John Mueller has stated on a few different occasions “if you 301 redirect pages that should 404 to your home page, Google will treat them as soft 404s anyway.”

Remove and Return an Error

The alternative to a redirect is removing the product page outright and returning an error message. To be of most use to your customers, this error message should be specifically crafted to deliver a good error experience. The error page should explain the product has been removed and offer suggested products, the more related the better. The error page should also give people ways to search your website for other products you offer.

This error message needs to return either a 404 or 410 response status code. If technically feasible, I typically recommend using a 410 response since that indicates a more intentional removal from the website, unlike a 404 message.

Final Thoughts

Removing a product and handling out of stock scenarios requires stepping through a complex series of questions. Chances are, different products on your website will need to be handled in different ways given the nature of that specific product. If you have any questions about any aspect of this or want help handling this on your website, please contact me.

You may also like

How To Fix 404 Errors On Your Website

Finding and fixing 404s errors on your website is important because not-found errors create a bad user experience. In this guide, you will learn how to find and fix 404 errors on your website.

Google Search Console: Page Indexing Report

Is Google indexing every page on your website? If not, why not? To answer these questions, you need to use the Page Indexing Report in Google Search Console. Find out how to use and understand this report.

How to Check HTTP Response Status Codes

Every page on every website returns an HTTP response status code. How do you check the status code for your website’s pages? What tools can you use to test status codes? What do the status codes mean?