How to Remove Shop/Product/Product-Category slug from WooCommerce URL?

You can remove the Shop/Product/Product-Category slug from your WooCommerce products URLs. You don’t need to have coding knowledge for this.

And, if you are worried about the existing URLs shared over different platforms, then you can simply create a redirection rule after removing the Shop/Product/Product-Category slug. Check this guide to redirect the old URL structure to the new URL structure.
So that if anyone tries to visit the product page with any of the old URLs they can automatically redirect to the product page with the new URL structure.

With the Premmerce Permalink Manager for WooCommerce plugin you can remove the Shop/Product/Product-Category slug. The free version of this plugin is enough to perform the job you want, you do not need to go for the premium version.

How to Remove Shop/Product/Product-Category slug from WooCommerce URL

STEP 1:

Install the Premmerce Permalink Manager for WooCommerce plugin on your WooCommerce website, and activate it.

Premmerce Permalink Manager for WooCommerce plugin installation

STEP 2:

After activating the plugin it will open the plugin settings page. If you do not see the plugin settings page then you can find it from the WordPress dashboard menu.

Premmerce Permalink Manager menu

STEP 3:

On the plugin settings page, you can set the URL structure for the Product Category page and the Product page

So, for the category pages, you can display the parent categories with the categories, or only the categories. Select one of the options from the Categories section.

WooCommerce permalink set up for category pages

For the product pages, you can select only the product slug after the website address, or you can display the categories or the categories with the parent categories. Select the structure you want.

Remove Shop-Product-Product-Category slug from the URL of WooCommerce

Leave all the other settings as they are and save the settings.

Now check the product page or category pages on the site if they are working as the settings. If you do not like any settings then you can change it to another available settings option on the plugin settings page.

Final thoughts

WooCommerce itself does not recommend removing the Shop/Product/Product-Category slug from the URL. Because the product URLs can collide with the existing pages or posts. So make sure that the site has no URLs for any pages or posts as the product’s URLs.

This Post Has 4 Comments

  1. Very good info on how to remove the slug. This will save people lots of time when they have issues with this.

  2. Riaan

    Hey there!
    Regarding your final thoughts, I saw that warning, but at the same time, they have a plugin doing this on their Woo marketplace. So is it legit now?

    1. Nur Islam

      Hi Riaan!
      The “Premmerce Permalink Manager” plugin is not by the same developer as the WooCommerce. It is a third-party plugin that can remove ‘shop’, ‘product’, ‘category’ slug from the URLs.

      About the warning, you have to make sure that your store doesn’t have any URL for any posts/pages same as the product URL. Like, if the the product URL is ‘/example-product/’ then no other page/post should have the same URL. If your store doesn’t have any URL’s that match with the URLs of the product then you can use this method without any issue.

Leave a Reply