How to Change the WooCommerce Permalink Structure

How to Change the WooCommerce Permalink Structure
On this page
  1. Why Consider Changing the Default Structure
  2. Step 1: Understand the Default Structure
  3. Step 2: Edit Permalink Settings
  4. Step 3: Save and Flush Rewrite Rules
  5. Step 4: Set Up 301 Redirects for the Old URLs
  6. Troubleshooting
  7. Frequently Asked Questions
  8. Conclusion

You can change the WooCommerce permalink structure from WordPress Dashboard > Settings > Permalinks, where the Product category base, Product tag base, and shop/product page bases can each be edited or removed to produce shorter, more SEO-friendly URLs.

Why Consider Changing the Default Structure

  • Default URLs like /product-category/category-slug and /product/product-slug add unnecessary depth and length
  • Google’s own guidance favors simpler URLs without redundant path segments
  • Shorter, cleaner URLs are easier for customers to read, remember, and share

Step 1: Understand the Default Structure

By default, WooCommerce assigns distinct URL bases so categories, tags, and products don’t conflict — commonly /product-category/, /product-tag/, and /product/.

Go to Settings > Permalinks, scroll to the “Product category base” and related fields under WooCommerce settings, and adjust or remove the base as needed. Removing the /product/ base entirely is a common choice, since Google typically doesn’t need it to correctly classify the page.

Step 3: Save and Flush Rewrite Rules

Saving the Permalinks page automatically flushes WordPress’s rewrite rules, applying the new structure across the site immediately.

Step 4: Set Up 301 Redirects for the Old URLs

Changing permalinks on a live, indexed site without redirecting old URLs to their new equivalents will cause broken links and lost search rankings — a redirection plugin or server-level rule is essential here.

Change the WooCommerce permalink structure: the page before adding the code
Before
Change the WooCommerce permalink structure: the page after adding the code
After

Troubleshooting

Pages 404 after changing the permalink structure

Re-save the Permalinks settings page again to force a fresh rewrite rule flush, which sometimes doesn’t apply fully on the first save with certain caching setups.

Category and product URLs now conflict

If you remove multiple bases entirely, make sure no category slug and product slug happen to collide — WordPress needs unique paths across post types and taxonomies.

Frequently Asked Questions

Will changing permalinks hurt my current SEO rankings?

It can cause a temporary dip if not handled carefully — proper 301 redirects from old to new URLs are essential to preserve accumulated ranking signals.

Can I remove the /shop/ base too?

Yes, the shop page’s own URL is controlled by its page slug under Pages, separate from the product/category permalink bases.

Is there a “best” permalink structure for every store?

Not universally — shorter is often better for SEO and readability, but the right choice also depends on your existing indexed URLs and how much redirect work you’re willing to do.

Schedule the switch for a low-traffic period and monitor Search Console closely in the days afterward — the technical steps to change the WooCommerce permalink structure are simple, but the redirect and re-indexing period afterward is where most of the real risk lives.

Conclusion

You can change the WooCommerce permalink structure directly from the Permalinks settings screen, but always pair the change with proper 301 redirects if the store is already live and indexed.

See also How to Change the Shop Page SEO Meta Title in WooCommerce. Then read Essential WooCommerce SEO Tips for Store Owners.

Prefer no code? All-in-One Utilities Woo Add-on adds over 50 WooCommerce features, so you can switch them on without code.

Leave a Reply

Schedule a call