Deleted WooCommerce products: from old URL to useful page.

Plan WooCommerce redirects, handle old product links and verify categories, caching and fallback with Product 404 Redirects.

By Jonas Stenild ·

Separate out of stock from deleted

An out-of-stock item can still have a useful page containing images, specifications and availability information. Keep it when the product will return. A deleted product needs a decision about what its old links should do.

Start with URLs receiving relevant visits or links. For each source, be able to explain the relationship between the old product and its target. A replacement product may be best; a category is useful when it actually offers the same kind of item.

What can be recovered?

My Product 404 Redirects WooCommerce extension uses saved mappings, the trash and retained slug history. It can capture future deletions while active. A permanently deleted item with no remaining database trace cannot automatically be matched from information that no longer exists.

For those old URLs, a previous catalogue export or your own redirect list can support a manual decision. A path that looks like a product is not enough evidence for a specific category.

A controlled setup

  • Back up the store and start in staging with the same permalink structure as production.
  • Install through WooCommerce.com and open WooCommerce → Product 404 Redirects.
  • Review shop-page fallback and the visitor notice. Disable fallback when the shop page is too broad.
  • Save the URL of a test product with a known category. Move it to the trash and inspect the resulting rule.
  • Test as a signed-out visitor. Confirm that the target exists, shows relevant products and does not redirect again.

Official installation and settings documentation

When a redirect does not work

ObservationCheck
The old 404 is still displayedActivation, the redirects setting, page cache and server cache.
Visitors land on the shop pageWhether the category still exists and fallback is enabled.
An old URL has no ruleWhether a mapping, trashed product or history is available.
The URL redirects several timesOverlapping rules in the server, SEO plugin and redirect plugin.
The category has no relevant productsChoose a better destination or keep a genuine 404.

Check the response and the journey

Open the browser network panel and inspect the first document response. A permanently deleted product with a relevant target can use 301. The destination should work without another redirect. Also check an existing product, an unknown path and a removed category.

The plugin documentation describes 302 for private products. A temporary response should not automatically be treated as a permanent move. Review why the product has that status before changing rules.

More redirect hits show that rules are being used. Compare them with the store’s actual sales reporting to understand business impact.

A worked test plan for old product links

Use a disposable product in a test environment and save its full URL before deletion. The following is an example acceptance test to run in your own store.

WooCommerce · A worked test plan for old product links
CheckExpected behaviourWhy it matters
An existing productThe intended product page opens as before.A rule must not take over valid product pages.
The test product after deletionThe old link reaches the relevant target you selected.Inspect both the HTTP response and the destination content.
The destination opened directlyThe page works and presents a relevant alternative.A redirect only helps when its destination serves the visitor.
An unknown address without a matchThe agreed 404 or fallback behaviour.Find an overly broad rule that also catches unrelated addresses.
An active rule disabled for the testThe disabled rule no longer takes over the address.Compare before and after to check settings and caching.
An old link after permalink changesTest the complete old URL separately.Saved rules and history do not replace a migration URL map.

Example of a direct permanent move: old product → 301 → relevant category → 200. These codes describe an expected test sequence, not a measurement. Record the source URL, selected target, actual response and date so you can investigate a failure again.

Run the check in the free 404 scanner

A platform move is a different task from deleting one product. In the GM Keramik case, the brief was WooCommerce and local pickup. Your migration needs a plan for URLs, catalogue and ordering together. Get help with WooCommerce migration and development.

Let’s look at your store

Send your platform, the specific challenge and any deadline so we can define a useful next step.

Discuss your project