Product 404 Redirects

Product 404 Redirects for WooCommerce allows your WooCommerce store to automatically redirect deleted or trashed product URLs to their category pages – rescuing lost visitors and preserving SEO link equity with zero configuration.

Installation

↑ Back to top

To start using a product from WooCommerce.com, you can use the โ€œAdd to storeโ€ functionality on the order confirmation page or the My subscriptions section in your account.

  1. Navigate to My subscriptions.
  2. Find the Add to store button next to the product youโ€™re planning to install.
  3. Follow the instructions on the screen, and the product will be automatically added to your store.

Alternative options and more information at:
Managing WooCommerce.com subscriptions.

Adding a WooCommerce.com subscription to your store

How it works

↑ Back to top

When a product is deleted or trashed, old links from Google, Pinterest, social media, and customer bookmarks still point to the now-missing URL. Without a redirect, visitors hit a dead-end 404 page and leave. Product 404 Redirects intercepts these 404 errors and sends visitors to the most relevant category page – turning lost traffic into browsing customers.

  • SEO-friendly 301 redirects – Search engines transfer link equity to the category page instead of indexing dead URLs.
  • Intelligent category matching – Picks the most specific, most populated category the product belonged to so visitors land on a page full of relevant products.
  • Proactive mapping – Captures slug-to-category mappings the moment products are trashed or deleted, so even permanently removed products are covered.
  • Visitor-friendly notice – A subtle, dismissible toast notification tells the customer what happened and invites them to keep browsing.
  • Dashboard analytics – Track rescued visitors in real time: today, last 7 days, last 30 days, and all-time.
  • Redirect manager – View all saved redirect rules, see hit counts, and delete rules you no longer need.
  • Lightweight – No external dependencies, no JavaScript frameworks, no bloat. Adds a single, tiny database query on 404 pages only.
  • HPOS compatible – Full support for WooCommerce High-Performance Order Storage.

Setup and Configuration

↑ Back to top

Getting started

↑ Back to top

Product 404 Redirects works out of the box with zero configuration. Simply install and activate the plugin – it will immediately begin intercepting 404s for deleted products and redirecting visitors to their category pages.

To review or customize settings:

  1. Go to: WooCommerce > Product 404 Redirects.
  2. On the Dashboard tab, view your rescue statistics – today, last 7 days, last 30 days, and all-time.
  3. On the Redirects tab, browse and manage all saved redirect rules and their hit counts.
  4. On the Settings tab, toggle the visitor notice, customize its message text, and configure advanced options.

Settings options

↑ Back to top

The following options are available under the Settings tab:

  • Enable redirects – Master on/off switch for the plugin. Enabled by default.
  • Visitor notice – Show a dismissible toast notification to redirected visitors explaining what happened. Enabled by default.
  • Notice text – Customize the message shown to visitors. Supports the {product} placeholder to display the original product name.
  • Notice duration – How many seconds the notice stays visible before auto-dismissing. Default: 8 seconds.
  • Fallback to shop page – If the product’s category no longer exists, redirect to the main shop page instead. Enabled by default.
  • Log retention – Number of days to keep redirect log entries for analytics. Default: 90 days.
  • Custom CSS – Add your own CSS to style the visitor notice to match your theme.

Usage

↑ Back to top

When a visitor clicks an old link to a deleted product, they are seamlessly redirected to the most relevant category page. A small toast notification appears at the top of the page letting them know the original product is no longer available and inviting them to browse similar products.

The notification is fully customizable, auto-dismisses after a configurable duration, and can be closed manually by the visitor. It is designed to be unobtrusive and compatible with page caching and CDNs.

Troubleshooting

↑ Back to top

Redirects are not working

↑ Back to top
  • Ensure the plugin is activated and the Enable redirects toggle is turned on under WooCommerce > Product 404 Redirects > Settings.
  • Clear any page caching plugins or server-level caches. Cached 404 pages may continue to serve until the cache is refreshed.
  • Verify that your theme or another plugin is not intercepting 404 pages before Product 404 Redirects runs. The plugin hooks into template_redirect at priority 1 (very early).

Visitor notice is not appearing

↑ Back to top
  • Check that Visitor notice is enabled in the Settings tab.
  • Some themes or page builders may override notification elements. Try adding custom CSS in the plugin settings to adjust z-index or positioning.

Redirect goes to the shop page instead of a category

↑ Back to top
  • This happens when the product’s original category has also been deleted. The plugin falls back to the shop page when Fallback to shop page is enabled.
  • To control this, create a redirect rule manually in the Redirects tab pointing to the category you prefer.

FAQs

↑ Back to top

Does the plugin work with products deleted before installation?

  • Yes. Product 404 Redirects searches trashed products and WordPress slug history, so it can redirect URLs for products that were deleted before the plugin was installed. For permanently deleted products where no trace remains in the database, it won’t have data to match – but any future deletions are captured proactively.

What type of redirect is used?

  • The plugin uses 301 (Moved Permanently) redirects for deleted products and 302 (Temporary) redirects for private products. 301 redirects signal search engines to transfer link equity to the destination page, which is ideal for SEO.

Will it slow down my store?

  • No. The plugin only runs on 404 pages – it does not add any overhead to normal page loads. On a 404, it performs a single lightweight database query. There are no external API calls, no JavaScript frameworks, and no additional assets loaded on regular pages.

Is it compatible with page caching?

  • Yes. The redirect happens at the server level before any page content is generated, so it works with all caching plugins and CDNs. The visitor notice uses client-side rendering to remain compatible with cached pages.

Can I customize where a specific product redirects to?

  • Yes. You can manage individual redirect rules in the Redirects tab under WooCommerce > Product 404 Redirects. Edit any rule to point to a specific category or URL of your choice.

Does it work with WooCommerce HPOS (High-Performance Order Storage)?

  • Yes. Full HPOS compatibility is declared and tested. The plugin does not interact with the orders system, so there are no conflicts.

Related Products

Offer add-ons like gift wrapping, special messages or other special options for your products.

Add shipment tracking information to your orders.

Use of your personal data
We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.