Eren Labs JOURNAL TR
Product Catalog

WooCommerce 404 Errors: Fix Missing Pages and Redirect Old Product URLs

A 404 on every product page and a 404 on one old product link are different problems. How to tell them apart, the settings that fix site-wide 404s, what to do with discontinued products, and how to find the missing addresses people still visit.

In this article10 sections

If every product page, the shop or the order-received page shows a WooCommerce 404 error, the cause is almost always the site’s rewrite rules or a page setting: open Settings → Permalinks and click Save Changes, then check WooCommerce’s page setup. If only some addresses 404, those products or categories were deleted, unpublished or renamed, and the fix is a redirect to the right page. This guide shows how to tell the two apart, the settings that fix site-wide 404s, what to do with discontinued products, and how to find the missing addresses people still visit.

First: is it every page, or a few?#

What you seeLikely causeWhere to look
Every product page is 404, the home page worksRewrite rules out of date, often after a migration or a permalink changeSettings → Permalinks, Save Changes
The shop page is 404No Shop page set, or it is in the trash or a draftWooCommerce → Settings → Products, Shop page
“Order received” is 404 after paymentCheckout page or endpoint changed, rules not refreshedWooCommerce → Settings → Advanced, Page setup and Checkout endpoints
Category pages are 404Category base changed, or the category was renamed or deletedSettings → Permalinks, Product category base; the category itself
One old product link is 404Product deleted, trashed, unpublished or renamedProducts, including Trash and Drafts

Test in a private window while logged out. An administrator can see drafts and private products that a visitor gets a 404 for, so a page that “works for me” can still be missing for customers and search engines.

WordPress turns addresses such as /product/blue-mug/ into the right page using rewrite rules stored in the database. When those rules are stale, every product address fails even though the products exist. Going to Settings → Permalinks and clicking Save Changes, without changing anything, rebuilds them. It is the first thing to try after moving the site, restoring a backup, changing the product base or activating a plugin that adds its own addresses.

On the same screen, WooCommerce adds a Product permalinks section with four choices: Default (/product/name/), Shop base, Shop base with category and Custom base, plus the product category, tag and attribute bases. Two details catch people out:

  • A custom base must actually contain a base. WooCommerce’s own note says a base must be set or WordPress will use the default instead.
  • Changing any base changes every address at once. Switching from /product/ to /shop/ on a live shop turns every link Google and your customers have into a 404, unless you redirect the old pattern to the new one.

If saving permalinks doesn’t help on an Apache server, check that the .htaccess file exists and holds the WordPress block, and ask your host whether URL rewriting is enabled. On Nginx the rules live in the server configuration, which your host manages.

Shop, cart and order-received pages that 404#

WooCommerce builds several addresses on top of ordinary WordPress pages. The shop archive uses the page chosen as Shop page in WooCommerce → Settings → Products, and with the Shop base options that page’s address becomes the start of every product URL. If that page was trashed, set to draft or never chosen, the shop 404s.

The cart, checkout and My account pages are chosen under WooCommerce → Settings → Advanced → Page setup. The “order received” page a customer lands on after paying is not a separate page but an endpoint added to the checkout page, set under Checkout endpoints → Order received on the same screen. A WooCommerce order-received 404 usually means the checkout page was changed or recreated, or the endpoint was edited, and the rewrite rules were not refreshed. Check both settings, then save permalinks again. The same goes for My account endpoints such as orders or edit-address.

When only some products 404#

Here the site is working and particular addresses have gone. Look the product up in Products, including the Trash and the Drafts and Private views:

  • Trashed, draft, private or scheduled: visitors get a 404 until it is published again. Restoring from the trash brings it back as a draft, so publish it after restoring.
  • Renamed slug: when the slug of a published product changes, WordPress remembers the old one and sends visitors on to the new address, so a simple rename usually looks after itself. Changing it several times, or reusing an old slug for another product, can break that chain.
  • Renamed or deleted category: WordPress does not remember old category, tag or brand addresses, so /product-category/old-name/ becomes a 404 straight away. Our guide to changing your category structure without losing SEO covers restructures in depth.
  • Shop base with category: the category is part of the product’s address, so moving a product to another category can change its URL. Check the old address after recategorising.
  • Deleted for good: the product is gone, and you decide what the address should do instead.

Discontinued products: keep, redirect or 410?#

Illustration: an old product URL redirected to a replacement product, to its category, or marked as gone
A missing product has three honest endings: its replacement, its closest category, or a clear 'gone'.

Deleting a product that sold well throws away the links and rankings its page earned. Before you delete, decide what the address should do:

SituationDo this
Out of stock, coming backKeep the page live and let shoppers ask to be told; see back-in-stock notifications
Replaced by a new model301 redirect to the replacement
Gone, but similar products exist301 redirect to the closest category, or keep the page with alternatives
Gone, nothing comparable410 (gone), or let it 404

Keeping a discontinued page live, marked as no longer available and pointing to alternatives, is often the most useful option for a product people still search for by name. Showing related products on it does part of that work. If you are clearing out old lines, our guide to slow-moving inventory helps decide which ones to drop.

301, 302 or 410: which redirect?#

  • 301 (moved permanently): the page has a new home for good. Search engines move the old address’s standing to the new one. Use it for renamed products and categories, replacements and site restructures.
  • 302 (temporary): the page is elsewhere for now and will come back, such as a seasonal page pointing to the current collection. Search engines keep the old address.
  • 410 (gone): not a redirect but a clear statement that the page was removed on purpose and is not coming back.

Google’s guide to redirects and Google Search explains how it treats permanent and temporary redirects. Two habits to avoid: redirecting through several steps (send each old address straight to the final one), and pointing redirects at pages that don’t match.

Why not redirect every 404 to the homepage?#

A plugin setting that sends every missing page to the homepage looks tidy, but it hides the problem. A shopper who clicked a link for a particular product lands on the home page with no idea what happened, and search engines tend to treat a redirect to an unrelated page as a “soft 404”, a missing page dressed up as a working one. It also stops you seeing which addresses are missing, because they no longer show as errors. Redirect the addresses that matter to the right page one by one, and let the rest show a helpful 404 page with search and your main categories.

How to find the WooCommerce 404s that matter#

  • Google Search Console: the Pages report lists addresses Google tried and found missing. Sort out the ones with links or past traffic first. If whole category pages are dropping out, see our guide to category pages not indexed.
  • A 404 log on the site: records the missing addresses real visitors ask for and where they came from, such as an old newsletter, a social post or a marketplace listing. That tells you which ones cost you sales.
  • Your own links: menus, widgets, old blog posts and product descriptions that still point to deleted products. Fix the link itself, not only the redirect.

For other error messages you may meet along the way, our WooCommerce errors reference explains each one.

Redirects and a 404 report with StoreRuler#

StoreRuler is our free back office for WooCommerce, and it includes the redirect and 404 tools this guide describes. The free version on WordPress.org creates 301, 302 or 410 redirects for one address or for everything under it, so a whole old section can move at once, with CSV import and export for large lists. A renamed product category, tag or brand redirects from its old address by itself, which closes the gap WordPress leaves.

StoreRuler redirects and 404 report: missing addresses with visitor counts, referring sites and a Redirect button
StoreRuler (free): the 404 report lists missing addresses with where visitors came from; Redirect opens the form already filled in.

The 404 report lists the missing addresses visitors ask for, with how often and from which site they came, and keeps no IP addresses. Each row has a Redirect button that opens the redirect form already filled in, so fixing the busiest missing product link takes a few seconds. StoreRuler also covers the order desk, packing, tracking and product health in the same plugin.

WooCommerce 404 errors: frequently asked questions#


Why are all my WooCommerce product pages showing 404?

Usually the rewrite rules are out of date, often after a migration or a permalink change. Go to Settings → Permalinks and click Save Changes without changing anything. If that doesn’t help, check the .htaccess file on Apache or ask your host about URL rewriting.


Why does the order-received page give a 404?

Order received is an endpoint on the checkout page. Check the Checkout page under WooCommerce → Settings → Advanced → Page setup and the Order received endpoint under Checkout endpoints, then save permalinks again.


Should I redirect a deleted product?

If it has a replacement, 301 redirect to it. If similar products exist, redirect to the closest category. If nothing comparable exists, let it return 410 or 404. If it will be back in stock, don’t delete it at all.


Does WordPress redirect a renamed product automatically?

When the slug of a published product changes, WordPress remembers the old slug and sends visitors to the new address. It does not do the same for renamed categories, tags or brands, so those need a redirect.


Is it bad to redirect all 404s to the homepage?

Yes, usually. Shoppers lose track of what they wanted, search engines may treat it as a soft 404, and you can no longer see which addresses are missing. Redirect the important ones to matching pages and keep a helpful 404 page for the rest.


More in Product Catalog

Keep exploring

All articles
Before you go Let StoreRuler do this in WooCommerce

Order desk, pick lists, packing slips, order tracking, product health, live carts and sales reports, on top of WooCommerce.

Explore StoreRuler Get the free version

Free version on WordPress.org