Use 301 redirects before you change WooCommerce product permalinks, not after broken links start showing up. Product URLs collect SEO value, ad traffic, email clicks, affiliate links, and customer bookmarks. If you change them without a redirect plan, shoppers hit 404 pages and search engines need to reprocess the new structure. Google recommends server-side redirects when a page has moved permanently [source: Google].
TLDR: Export your current WooCommerce product URLs, create a matching list of old and new URLs, then add 301 permanent redirects before or right after changing the permalink settings. For example, redirect /product/blue-running-shoes/ to /shop/shoes/blue-running-shoes/. On a store with 500 products, even a 5% drop in reachable product pages means 25 products may send buyers to dead pages. Check the results with an SEO crawler, Google Search Console, and your own analytics within the first week.
Why old WooCommerce product URLs must be redirected
WooCommerce product pages are not just catalog entries. They are sales pages. They may appear in Google, product feeds, newsletters, paid ads, social posts, and old invoices.
When you change the product permalink structure, the URL can change for every product. A common switch is from:
- /product/product-name/
- to /shop/category/product-name/
Without redirects, the old URL returns a 404 Not Found response. That creates three problems:
- Lost sales: buyers land on an error page instead of a product page.
- SEO loss: search engines need time to find and trust the new URLs.
- Messy tracking: analytics reports show broken paths, odd drops, and referral waste.
The catch is that WooCommerce makes permalink changes look simple. One dropdown can alter hundreds or thousands of URLs. The cleanup is the part that takes time.
Step 1: Save a copy of your current product URLs
Before touching permalink settings, export the existing product URLs. This gives you a safety net.
You can collect them from:
- Your XML sitemap.
- A crawling tool such as Screaming Frog or Sitebulb.
- A WooCommerce product export.
- Google Search Console pages report.
- Your analytics landing page report.
Create a spreadsheet with at least two columns:
- Old URL
- New URL
Keep this file clean. Do not mix relative and full URLs unless your redirect tool supports both. A simple format like https://example.com/product/old-product/ is usually safest.
Step 2: Change WooCommerce product permalinks
In WordPress, go to Settings > Permalinks. Scroll to Product permalinks. Pick the structure you want.
Common options include:
- Default: Uses the product ID or query structure.
- Shop base: Adds the shop base before the product slug.
- Shop base with category: Adds both the shop base and category.
- Custom base: Lets you set your own product path.
For most stores, short and stable URLs are best. Avoid adding categories if your product categories change often. If a product moves from “sale” to “new arrivals,” you do not want the URL to change again.
Step 3: Add 301 redirects from old URLs to new URLs
A 301 redirect tells browsers and search engines that the old URL has moved permanently. This is the right redirect type for product permalink changes.
You can add 301 redirects in several ways:
- Redirect plugin: Best for most store owners. It is safer and easier to review.
- .htaccess rules: Good for Apache servers, but easy to break if edited carelessly.
- Nginx config: Fast and clean, but usually needs server access.
- SEO plugin redirect manager: Useful if your SEO plugin already includes this feature.
Honestly, it feels like some redirect screens were built to punish bulk edits. If you have more than 50 products, look for CSV import. Manually adding hundreds of rows can waste an afternoon.
For one-to-one redirects, map each exact old product URL to its new URL. Example:
- Old: /product/black-leather-wallet/
- New: /shop/accessories/black-leather-wallet/
- Type: 301 permanent
If your change follows a clear pattern, you may use a regex redirect. Be careful. A bad pattern can send customers to the wrong product or create redirect loops.
Step 4: Test redirects before calling the job done
Do not trust the settings page alone. Test the old URLs.
Check that each old product URL:
- Returns a 301 status first.
- Ends on the correct new product page.
- Does not pass through several redirect hops.
- Does not land on the shop page unless the product is gone.
- Does not point to a category page by accident.
One redirect hop is fine. Three or four is sloppy and slower. It can also make diagnosis harder later.
Step 5: Update internal links, feeds, and sitemaps
Redirects are a safety net. They should not be your main internal linking system.
After adding redirects, update:
- Menu links.
- Product links inside blog posts.
- Featured product sections.
- Email templates.
- Google Merchant Center product feed links.
- XML sitemaps.
- Canonical URLs.
Then clear your cache. This includes WordPress cache, server cache, CDN cache, and any WooCommerce optimization plugin cache.
Step 6: Watch 404s and sales data after launch
The first 7 to 14 days matter most. Check reports daily if the store gets steady traffic.
Look for:
- Spikes in 404 errors.
- Drops in organic product traffic.
- Paid campaigns sending users to old links.
- Affiliate links that no longer work.
- Product feed disapprovals.
If a product is discontinued, redirect to the closest replacement. If there is no replacement, redirect to the most relevant category. Do not send every removed product to the homepage. That is lazy, and users notice.
Common mistakes to avoid
- Changing permalinks without a URL backup. You cannot redirect what you did not record.
- Using 302 redirects for permanent moves. Use 301 redirects for changed product URLs.
- Redirecting all products to the shop page. This hurts user trust.
- Ignoring product variations. Some stores link to variation URLs with query strings.
- Forgetting ads and feeds. Paid traffic can burn money fast if URLs break.
The safest plan is simple: export old URLs, change permalinks, add 301 redirects, test hard, then monitor errors. Treat product URLs like business assets. They bring in traffic, trust, and revenue. Break them carelessly, and the store pays for it.

