In short
- 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.
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
What WordPress does with a product address that no longer exists
Before it shows a 404 page, WordPress tries two redirects.
The product was renamed
WordPress keeps the old slug and sends the old address to the product's new one.
Automatic, and right.
Another product starts with the same words
WordPress looks for a published product whose slug begins with the missing one and redirects to it, even if it is a different product.
/product/tarte-au/ went to the chocolate tart, not the lemon one.
Nothing matches
The theme's 404 template is shown with a 404 status, which is what search engines need to drop the address.
72 of 73 stores did this for an address nothing matched.
- 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-chairandoak-chair-cushionstill 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
What a missing product URL did on 73 WooCommerce stores
Requested on 21 November 2026 with each store's own product path.
answered a made-up product URL with a real 404
redirected it to the home page, which Google treats as a soft 404
301-redirected a shortened real product URL to a product WordPress guessed
of those redirects went to a different product from the one we shortened
404 pages had a search box; 25 searched products only
404 pages linked to any product
We took the 73 stores from our 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.
- 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
What to do with a WooCommerce product you remove
Decide per product, and set the redirect yourself rather than leaving it to WordPress's guess.
| THE PRODUCT | DO | WHY |
|---|---|---|
| Sold out but coming back | KEEP | Leave the page live and show it as out of stock. |
| Replaced by a new product | 301 TO IT | Shoppers and links land on the thing that replaced it. |
| Gone, but its category still sells | 301 TO CATEGORY | The nearest page that still answers the search. |
| Gone, with nothing close | 404 OR 410 | An honest not-found lets Google drop the address. |
| Anything | NOT THE HOME PAGE | Google treats a redirect to an unrelated page as a soft 404. |
- Sold out but coming back: keep the page. WooCommerce out of stock products covers how to show it.
- Replaced: move the old product to the bin and add a 301 from its address to the replacement.
- Gone, but the category still sells: 301 to the category.
- Gone, with nothing close: let it return 404, or 410 if your redirect plugin offers it. Google drops the address either way.
- 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 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.phpto 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
What a crawl reports about missing pages on a WooCommerce store
The 404 page itself is fine. The findings are the links and redirects that lead to it.
| FINDING | SEVERITY | ON A WOOCOMMERCE STORE IT USUALLY MEANS |
|---|---|---|
| Broken internal link | HIGH | A menu, category description or post still links to a deleted product. |
| Page not found (404) | HIGH | A crawled URL, often from the sitemap or an old link, that no longer exists. |
| Internal link to a redirect | MEDIUM | A link to an old product address that WordPress or a plugin now redirects. |
| Missing pages answer 200 | MEDIUM | A plugin that sends every missing URL to the home page or the shop. |
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, 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) explains the Search Console report, and the same post exists for Shopify, Wix, Squarespace and Webflow.
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.
Frequently asked questions
- 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.