Remove /product/ & /product-category/ from WooCommerce permalinks

In terms of customizing your shop URLs, WooCommerce permalinks do not provide you with a lot of options. This tutorial will show you how to quickly and easily modify the permalinks for products, categories, and tags using Permalink Manager Pro.

Some of the functionalities presented in this article are not available in free version (Permalink Manager Lite). Buy Permalink Manager Pro

Each content type must have its own permalink structure due to WordPress limitations. All WooCommerce permalinks, as seen below, begin with a unique “rewrite base” (marked in red). You can rename them in the “Permalinks” settings section, but unfortunately you cannot remove them entirely. (Product category) (Product tag) (Product)

All URLs in this article are examples and have been simplified. Permalink Manager’s capabilities are significantly wider. You may, for example, easily add custom fields (such as SKU) to them. Furthermore, you may manually update any of the individual WooCommerce permalinks if necessary.

Remove rewrite bases

Permalink Manager overcomes this drawback by using a custom algorithm to identify URLs. As a result, you are free to modify the WooCommerce permalinks in any manner you see fit. For example, you may simply delete the redundant “rewrite bases”. (Product category) (Product tag) (Product)

You can also use whatever permalink base you choose. That is, you may have all WooCommerce links share the same permalink format. (Product category) (Product tag) (Product)

The first thing you should do after installing and activating Permalink Manager is to navigate to the “Permastructures” tab in the plugin’s dashboard (“Tools -> Permalink Manager“).

Permastructures settings
Permalink Manager dashboard with permastructures settings

The WooCommerce content types are organized in a separate subsection for your convenience. You may then modify the permastructures for Products, Product Categories, and Product Tags.

Settings for WooCommerce content types
WooCommerce Permastructure settings

You may now replace the permalink bases /product/, /product-category/, and /product-tag/ with any word you choose or delete them entirely. Please remember to save the updated options by clicking the “Save Permastructures” button at the bottom of the page.

New permastructures and existing permalinks
The modified formats will be used automatically only for new permalinks. Please move to the following step if you want to apply the adjustments to the existing permalinks as well.
New adjusted WooCommerce permalinks
New permastructures settings with /product/, /product-category/ and /product-tag/ tags removed completely.

If you want to make your old URLs follow your new settings, use the “Regenerate/reset” option to regenerate them. Fortunately, it is a simple process. Go to the “Tools -> Permalink Manager -> Tools” section to open the settings panel.

To reset the Product’s permalinks please set:

  • Mode” to: “Regenerate custom permalinks
  • Select content type” to: “Post types
  • Select post types” to: “Products
  • Select post statuses” to “Published
Regnerate/reset tool
Please check this page for further information on how to use “Regenerate/reset” tool.
Regenerate custom permalinks
Regenerate/reset subsection.

The approach for Product categories is identical to that for Products in the previous step. Please apply the following settings to reset the Product Categories and Product Tags permalinks:

  • Mode” to: “Regenerate custom permalinks
  • Select content type” to: “Taxonomies
  • Select post types” to: “Product tags, Product categories
Regenerate WooCommerce permalinks (product categories and tags)
Form settings for “Product categories” and “Product tags”
How to translate permalinks?
It is also possible to translate the permastructures and configure multiple permalink formats for each language specified by WPML or Polylang. More information about this may be found in this article.

Translate WooCommerce products URLs

Translate WooCommerce product categories & tags URLs

Go up