GrowStore, WooCommerce SEO consulting

Blog

WooCommerce out of stock products and SEO: keep, hide, redirect, or remove?

Jean Reis10 min read

How to handle WooCommerce out of stock products for SEO: when to keep the page, hide it from the catalog, 301 redirect it, or let it 404, based on Google docs.

Every WooCommerce store eventually faces the same question: a product sells out, or the supplier drops it for good, and someone asks whether to hide it, delete it, redirect it, or leave it alone. The wrong choice can quietly throw away a URL that earned links and search impressions for years. The right choice depends on one thing first: is the product coming back?

This guide covers WooCommerce out of stock products and SEO from both sides. It explains what the built-in WooCommerce settings actually do, what Google's own documentation says about each HTTP response, and a simple decision model you can apply SKU by SKU. If you want a second pair of eyes on how stock changes are affecting your indexation, the free mini SEO audit is a written review you can request any time.

Why this question keeps coming up

Store owners ask about it constantly. A December 2025 thread on r/woocommerce titled "How do you manage out-of-stock products in WooCommerce without hiding everything?" describes the core setting as "a bit too all-or-nothing," and most replies say they keep sold-out products visible "because SEO." On the WordPress.org support forum, a store owner who enabled the hide setting was surprised that sold-out product pages still loaded from Google. Google autocomplete in the US also surfaces searches like "woocommerce out of stock visibility," "woocommerce hide out of stock products," and "woocommerce discontinued products."

The confusion is understandable, because "hidden" in WooCommerce does not mean "gone" for search engines.

Temporarily out of stock vs. discontinued

Treat these as two different problems.

Temporarily out of stock means you expect to sell the product again. Restock is on order, the item is seasonal, or a supplier is late.

Discontinued means the product is not coming back. Maybe a newer model replaced it, or you stopped carrying the brand.

Google's guidance draws the same line. Its page on pausing an online business answers the question "Should I use the Removals Tool to remove out-of-stock products?" with a clear no, and recommends keeping the page available and marking it out of stock so people "can still understand what's going on, even if they can't purchase the item." For products that are gone for good, Search Console Help on 404 errors says that if content has moved you should add a redirect, and if you deleted it with no replacement, the old URL should return a 404 or 410.

What WooCommerce's "Hide out of stock items" setting really does

The setting lives under WooCommerce > Settings > Products > Inventory. WooCommerce's product settings documentation describes the "Out Of Stock Visibility" option as a box you tick "to hide out of stock items from the store catalog/customer view."

The key words are "catalog" and "customer view." The product is not unpublished. In the WordPress.org thread linked above, a WooCommerce support team member confirmed that the feature removes products from catalog and category pages "but it will not prevent users to go to the product page if they have the direct URL." In practice that means:

  • The product URL still returns a normal page, so Google can keep crawling and indexing it.
  • Your shop and category pages stop linking to it while it is out of stock, which weakens the internal links pointing at that URL.
  • Your XML sitemap may still list it, depending on your SEO plugin. Check your product sitemap rather than assuming.

So the global hide setting is mostly a merchandising decision, not an SEO one. It can tidy your category grids, but it does not remove anything from Google, and it can leave orphan-like product pages that only Google and old links still reach.

What Google does with each response

Before you pick a tactic, know what each one tells Google. These points come from Google's documentation on how HTTP status codes affect Google's crawlers and on redirects.

200 with the page marked out of stock

Google can keep the URL indexed. A 200 status does not guarantee indexing, but the page remains eligible. If the page looks empty or like an error message, Search Console may report it as a soft 404, so an out of stock page should still carry real product content.

301 redirect

Google's redirects guide says a permanent server-side redirect (301 or 308) is the way to change the URL shown in search results. It is the right tool when there is a clear replacement.

302 or 307 redirect

A temporary redirect keeps the original URL in mind as the one to show. Google's guide gives the example of sending users to an explanation page when a service is temporarily unavailable. For a short stockout this is rarely needed, because simply keeping the page live is simpler.

404 or 410

Google's crawler documentation says it does not use content from URLs that return 4xx codes, and that previously indexed URLs returning 4xx will drop out over time. Search Console Help adds that Google currently treats 410 the same as 404. The Page indexing report help also notes that a 404 for a page "that you've removed and have no replacement for" is a perfectly good reason for a URL not to be indexed.

Redirecting everything to the homepage

Search Console Help specifically warns against redirecting deleted pages to your homepage instead of returning a 404. Google calls these soft 404s, and they confuse both shoppers and crawlers.

The decision model, SKU by SKU

Use these four outcomes. Most stores need all of them at different times.

1. Temporarily out of stock: keep the page live

This is the default for anything coming back. Keep the product published, set the stock status to Out of stock, and make the page useful instead of a dead end:

  • Show the out of stock status clearly near the price.
  • Give a restock date if you genuinely know it. Don't guess.
  • Offer a back-in-stock email signup. Several plugins add this, and it captures demand you would otherwise lose.
  • Link to two or three close alternatives that are in stock.
  • Keep the description, images, specs, and reviews. They are why the page earned visibility in the first place.

If the product will ship later and you want to keep taking orders, WooCommerce's "On backorder" status may fit better than Out of stock.

2. Out of stock for a long time, but you still want the URL: hide from the catalog only

Some products are unavailable for months but still attract searches or links. WooCommerce lets you set a single product's Catalog visibility to Hidden in the product editor's Publish box, which keeps the URL live but drops it from shop and search listings. You keep the page for searchers who land on it, without cluttering category grids. Give that page strong alternative links, because your own catalog is no longer linking to it.

3. Discontinued with a clear replacement: 301 redirect

When a newer model, a direct successor, or a near-identical product replaces the old one, redirect the old product URL to it with a 301. The shopper lands on something they can buy, and Google gets a clear signal about which URL should replace the old one. Redirect to the closest match, not the homepage. If the closest match is a narrow category (for example, the "cast iron skillets" category for a discontinued skillet), that can be reasonable when there is no single replacement product. Make sure the target genuinely satisfies the same need.

4. Discontinued with no replacement and no value: let it 404 or 410

If the product never earned meaningful links or traffic and nothing similar exists, it is fine to remove it. Trash or delete the product, take it out of your feed and sitemap, and let the URL return 404 or 410. Google's documentation is explicit that this is acceptable.

A middle path for discontinued products that still get traffic or links but have no single replacement: keep the page live as an archive, state clearly that it is discontinued, and point shoppers to the best alternatives. That is a business choice. Just keep the page helpful so it does not read as an empty error page.

A WordPress detail that surprises people

Before you assume a deleted product returns a 404, test the old URL. WordPress core includes redirect_guess_404_permalink, which "attempts to guess the correct URL for a 404 request." If a different product has a similar slug, WordPress may redirect the old URL there automatically, even if that product is not a real replacement. Since WordPress 5.5, developers can turn this guessing off with the do_redirect_guess_404_permalink filter. Either way, check the actual response code with a header checker or curl -I and add your own redirect rule when the guess is wrong.

Keep structured data and Merchant Center in sync

Availability is not only visible text. It is also in your product markup and, if you use it, your Google Merchant Center feed.

Product structured data

WooCommerce core outputs Product JSON-LD with an availability value. In the current WooCommerce structured data source, in-stock products map to InStock, backorders to BackOrder, and everything else to OutOfStock. Google's merchant listing structured data docs list the accepted values, including OutOfStock, BackOrder, PreOrder, and Discontinued, all from schema.org ItemAvailability. If you run an SEO plugin that replaces WooCommerce's markup, confirm it still reflects the real stock status. Our guide to WooCommerce product schema for rich results covers validation in more detail.

Merchant Center feed

Google Merchant Center Help on the availability attribute says to set out_of_stock when you are temporarily not accepting orders. It also warns against deleting an item just to hide it temporarily, because adding an offer back after deletion "will take a significant amount of time before it can show again," and suggests the pause attribute instead. For products you have stopped selling, Merchant Center Help on landing page maintenance says not to use out_of_stock, and to remove discontinued products from your product data. If your feed comes from Google for WooCommerce or another plugin, check how it handles out of stock and trashed products so the feed matches the site.

A quick audit you can run this week

  1. Export products with stock status Out of stock from WooCommerce.
  2. Split them into "coming back" and "discontinued." Ask whoever manages purchasing, not just the web team.
  3. For discontinued items, pull clicks and impressions from the Search Console Performance report and check which URLs have external links.
  4. Assign each discontinued URL one outcome: 301 to a replacement, keep as an archive, or let it 404.
  5. Test a sample of old URLs for their real response code, including any WordPress slug guessing.
  6. Confirm your XML sitemap lists only URLs you want indexed.
  7. Spot-check product JSON-LD and the Merchant Center feed for a few out of stock items.
  8. Review the "Not found (404)" and soft 404 rows in the Page indexing report after the changes settle.

When to bring in help

For a store with a few dozen SKUs, the checklist above is a weekend task. For catalogs with thousands of products, frequent supplier churn, or a history of plugin-generated redirects, the hard part is building a repeatable rule that the whole team follows. That is the kind of work our ongoing plans cover, and you can see what each one includes on the GrowStore pricing page. If you are not sure yet, start with the free written mini-audit and we will send back a written read on your stock-related indexation issues.

Bottom line

Out of stock is not a reason to remove a page from Google. Keep temporarily unavailable products live, clearly labeled, and useful. Hide products from the catalog only when it helps shoppers, and remember that hiding is not de-indexing. Redirect discontinued products when a real replacement exists, and let truly dead URLs return 404 or 410 without guilt. Keep markup and feeds in step with the page. None of this guarantees any ranking outcome, but it keeps you from throwing away URLs that already work and it keeps Google's view of your catalog honest.