# WooCommerce 404 Page: Fix Missing Products

Source: https://crawlcove.com/blog/woocommerce-404-page
Published 2026-11-21 · Updated 2026-11-22 · By Lewis Jones

> Why WooCommerce product pages return 404, what WordPress quietly redirects instead, what 73 live UK stores did, and what to do with products you remove.

## Key takeaways
- WooCommerce shows the theme's 404 template for a product address that does not exist, and 72 of 73 live UK stores we tested answered with a real 404 status
- Before that, WordPress redirects an old address if the product was renamed, and guesses: it 301s to any published product whose slug starts with the missing one
- On 54 of 57 stores a shortened product address was redirected to a guessed product, and 16 of those 54 landed on a different product from the one we shortened
- When every product returns 404, saving Settings, Permalinks usually fixes it, because it rebuilds WordPress's rewrite rules
- For a removed product, set the redirect yourself: to its replacement or its category, or let it 404, and never to the home page

A WooCommerce 404 page is what a shopper sees at a product or shop address that does not exist. WooCommerce does not make it; the theme's 404 template does, with a 404 status that tells search engines to drop the address. Before showing it, WordPress tries to redirect the visitor somewhere, and that guess is where most surprises come from. We requested missing product addresses on 73 live UK WooCommerce stores on 21 November 2026: 72 answered with a proper 404, and on 54 of 57 stores a shortened product address was quietly redirected to whichever product WordPress guessed.

This post covers why product pages 404, what WordPress redirects instead, what the stores did, what to do with products you remove, and what a useful 404 page needs. For the rest of a store audit, see the [WooCommerce SEO audit](https://crawlcove.com/blog/woocommerce-seo-audit).

## Why WooCommerce product pages return 404

**Every product 404s.** This is almost always WordPress's rewrite rules, the table that maps addresses such as `/product/oak-chair/` to the right content. A migration, a permalink change or some plugin updates leave it out of date. Open **Settings > Permalinks** and press **Save Changes** without changing anything; that rebuilds the rules.

**Some products 404.** Those products have been deleted, moved to the bin, set to draft or private, or given a new address. A product under **Products > All products** with a status other than Published is invisible to shoppers and crawlers, so its address answers 404.

**Categories 404.** The category base under **Settings > Permalinks** was changed, or the category was renamed. Unlike products, an old category address is not redirected after a rename, so links to it break.

## What WordPress does with a missing product address

**Figure:**
src: /media/blog/woocommerce-404-page/guess.webp
alt: What WordPress does with a product address that no longer exists: if the product was renamed it 301s the old slug to the new one; if another published product's slug starts with the missing one it 301s to that product, even a different one, as when /product/tarte-au/ went to the chocolate tart, not the lemon tart; if nothing matches the theme's 404 template is shown with a 404 status, as on 72 of 73 stores
label: Before the 404
inline: html
caption: Two of the three outcomes are redirects, and only one of those is always right.
aspect: 1400/436

- **A renamed product redirects.** When you change a published product's slug, WordPress stores the old one and sends the old address to the new one with a 301.
- **A partial match redirects too.** WordPress looks for a published product whose slug starts with the missing one, and redirects there. The match is loose by default; WordPress 5.5 added filters to change that. If you remove `oak-chair` and `oak-chair-cushion` still exists, the old chair's address now sends shoppers and Google to the cushion.
- **Otherwise, a 404.** The theme's 404 template, with a 404 status.

Two filters control the guess. `strict_redirect_guess_404_permalink` set to true makes WordPress redirect only on an exact slug match, and `do_redirect_guess_404_permalink` set to false switches it off. Add either with a code snippets plugin or in a child theme.

## What 73 live stores did

**Figure:**
src: /media/blog/woocommerce-404-page/sample.webp
alt: Missing product addresses on 73 UK WooCommerce stores on 21 November 2026: 72 answered a made-up product URL with a real 404; 1 redirected it to the home page; 54 of 57 redirected a shortened real product URL to a product WordPress guessed, and 16 of those went to a different product from the one shortened; 47 of 72 404 pages had a search box and 25 searched products only; 12 of 72 linked to any product
label: 73 stores
inline: html
caption: The status code was right almost everywhere. The redirects and the page itself were where stores lost people.
aspect: 1400/432

We took the 73 stores from our [WooCommerce image alt text](https://crawlcove.com/blog/woocommerce-image-alt-text) study and ran two tests on each, using the store's own product path.

- **A made-up product address.** 72 of 73 answered with a 404 status. One store sent it to its home page with a temporary redirect, which Google treats as a [soft 404](https://crawlcove.com/blog/soft-404).
- **A real product address cut to its first two words,** such as `/product/tarte-au/` for a lemon tart. On 54 of the 57 stores with long enough slugs, WordPress 301-redirected it to a product. In 16 of those 54 it was a different product from the one we started with: the chocolate tart instead of the lemon one, a 10 kg bag instead of a 2 kg bag, earrings instead of a necklace.
- **The 404 page itself.** 47 of the 72 had a search box, 25 of them searching products only. 12 linked to any product.

The second test is what happens when a link to a removed product carries a slug that another product starts with. The shopper and Google both land on a product they did not ask for, with a permanent redirect that says the old page moved there.

## What to do with a product you remove

**Figure:**
src: /media/blog/woocommerce-404-page/deleted.webp
alt: What to do with a WooCommerce product you remove: sold out but coming back, keep the page live as out of stock; replaced by a new product, 301 to it; gone but its category still sells, 301 to the category; gone with nothing close, let it return 404 or 410; never redirect anything to the home page, which Google treats as a soft 404
label: Removed products
inline: html
caption: An explicit redirect set by you always wins over WordPress's guess.
aspect: 1400/542

1. **Sold out but coming back:** keep the page. [WooCommerce out of stock products](https://crawlcove.com/blog/woocommerce-out-of-stock-products) covers how to show it.
2. **Replaced:** move the old product to the bin and add a 301 from its address to the replacement.
3. **Gone, but the category still sells:** 301 to the category.
4. **Gone, with nothing close:** let it return 404, or 410 if your redirect plugin offers it. Google drops the address either way.
5. **Never redirect to the home page,** however many removed products you have.

WordPress has no redirect screen of its own. Use a redirect plugin, or the redirect manager in Yoast SEO Premium or Rank Math. A redirect you set runs before WordPress's guess, so it fixes the wrong-product problem for that address. [WooCommerce 301 redirects](https://crawlcove.com/blog/woocommerce-301-redirect) shows how to add one in each tool.

## What a useful WooCommerce 404 page has

The 404 page comes from your theme, so that is where you change it:

- **Block theme:** in the Site Editor, open **Templates** and edit **Page: 404**.
- **Classic theme:** check the theme's options for a 404 page setting, or add a `404.php` to a child theme.
- **Elementor Pro:** create a 404 page template in the Theme Builder.

Give it a product search, so a shopper can type what they came for, and links to your main categories. A few bestsellers help too. Keep the 404 status; a 404 page that answers 200 looks to Google like a real, empty page.

## How to find links that lead to missing products

**Figure:**
src: /media/blog/woocommerce-404-page/crawl-checks.webp
alt: Table of missing-page findings on a WooCommerce store: broken internal link is high, a menu, category description or post still links to a deleted product; page not found is high, a crawled URL from the sitemap or an old link; internal link to a redirect is medium, a link to an old product address now redirected; missing pages answer 200 is medium, a plugin sending every missing URL to the home page or shop
label: What a crawl reports
inline: html
caption: Fix the links on your own pages first; they are the ones you control.
aspect: 1400/479

A better 404 page helps the shopper who lands on it, but the links that send people there are still yours to fix. In [Crawl Cove](https://crawlcove.com/ecommerce-seo-crawler), a link on your site to an address that does not exist is a high broken internal link finding, listed with the page it is on and the link text, and a crawled page that answers 404 is high as well. A link to an old product address that now redirects is a medium finding, which is how WordPress's guessed redirects show up. If the store sends every missing address to the home page, the crawl reports that missing pages answer 200. [Not found (404)](https://crawlcove.com/blog/not-found-404) explains the Search Console report, and the same post exists for [Shopify](https://crawlcove.com/blog/shopify-404-page), [Wix](https://crawlcove.com/blog/wix-404-page), [Squarespace](https://crawlcove.com/blog/squarespace-404-page) and [Webflow](https://crawlcove.com/blog/webflow-404-page).

## How we checked

On 21 November 2026 we took the 73 UK WooCommerce stores in our product sample (shops in OpenStreetMap in Bristol, Manchester, Leeds and Edinburgh that answered WooCommerce's public Store API with products). On each we requested a made-up address on the store's own product path, recorded the status and any redirect, and read the 404 page for a search form and product links. We then requested a real product's address cut to the first two words of its slug, on the 57 stores whose slug had at least three words, and recorded the first response. WordPress's redirect behaviour was read from its source (`redirect_guess_404_permalink` in canonical.php). Stores are not named.

## FAQ

### Why are my WooCommerce product pages showing 404?
If every product returns 404, WordPress's rewrite rules are usually out of date after a migration, a permalink change or a plugin update. Open Settings, Permalinks and press Save Changes without changing anything. If only some products 404, they have been deleted, unpublished or moved to a different address.

### Does WooCommerce redirect deleted products?
Not on purpose. WooCommerce has no redirect settings. WordPress redirects a product's old address after a rename, and it guesses a redirect when another published product's slug starts with the missing one. Otherwise a deleted product returns 404, and you add any redirect yourself with a redirect plugin or your SEO plugin's redirect manager.

### How do I customise the 404 page in WooCommerce?
The 404 page comes from the theme, not WooCommerce. In a block theme, edit the Page: 404 template in the Site Editor. In a classic theme, use the theme's options or a child theme's 404.php. With Elementor Pro, build a 404 page template in the Theme Builder. Add a product search and links to your main categories.

### Should I redirect a deleted product to the home page?
No. Google treats a redirect to an unrelated page much like a missing page, a soft 404, so nothing carries over, and the shopper lands on a page that does not mention the product. Redirect to a replacement or the category, or let the address return 404.

### Can I stop WordPress guessing redirects for missing products?
Yes. The strict_redirect_guess_404_permalink filter makes WordPress redirect only on an exact slug match, and do_redirect_guess_404_permalink switches the guess off. Add either with a code snippets plugin or in a child theme.
