1. Home
  2. Docs
  3. WooCommerce
  4. How to remove “product” & “product-category” slug from WooCommerce URLs?

How to remove “product” & “product-category” slug from WooCommerce URLs?

Permalink Manager allows to easily remove the permalinks slugs added to WooCommerce shop permalinks: products, product categories, tags and attributes.

Some of the functionalities presented in this post are available only in Permalink Manager Pro.

This tutorial shows how to remove the permalink bases from WooCommerce URLs, but can be used also as a reference to the other custom post types & taxonomies. Below you can find instructions on how to bulk edit the WooCommerce permalinks, but of course you can adjust each of them individually. Here you can find more information on how to edit the single post & term permalinks.

The instructions

The first thing you will need to do after Permalink Manager is installed & enabled is to open the plugin’s dashboard (“Tools -> Permalink Manager“) and go to “Permastructures” tab.

Go to Permalink Manager dashboard

In the bottom, you will find a subsection titled “WooCommerce” where the permastructures for Products, Product Categories and Product Tags can be edited.

Permastructure settings

It is also possible to translate the permastructures and set different permalink formats for each language defined with WPML or Polylang. In this article, you can find more information on this.

Now you can replace the permalink bases: /product/, /product-category/ and /product-tag/ with any word or remove it completely. Please always remember to save the new settings with “Save permastructures” button displayed in the very bottom of the page.

The saved settings will be automatically used for default permalinks of new products, categories and tags. To apply the changes to the old permalinks as well, please follow the instructions in the next step.

New permastructures settings with /product/, /product-category/ and /product-tag/ tags removed completely.

If you would like to use the new permastructures for old permalinks, please go to another section: “Tools -> Regenerate/reset“.

Regenerate/reset subsection.

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
Form settings for “Products”

After “Regenerate” button is clicked, a list of updated products’ permalinks should be displayed.

To reset the Product Categories and Product Tags permalinks please set:

  • Mode” to: “Regenerate custom permalinks
  • Select content type” to: “Taxonomies
  • Select post types” to: “Product tags, Product categories
Form settings for “Product categories” and “Product tags”

As was the case with the Product permalinks, the list of updated permalinks will be displayed after “Regenerate” button is clicked.

Was this article helpful to you? Yes No