How to Remove Product OR Product-Category Slug from WooCommerce URL
Do you want to How to Remove Product slug from WooCommerce URL? or you want to How to Remove Product-Category slug from WooCommerce URL? Then you are at the right place.
WooCommerce is one of the most popular eCommerce platforms for WordPress. However, its default URL structure includes slugs like /product/ or /product-category/, which can make URLs longer and less SEO-friendly.
In this guide, we’ll show you how to remove these slugs using the powerful Rank Math SEO plugin. By the end, your WooCommerce URLs will be clean, professional, and optimized for SEO. So without wasting further time let’s get into this tutorial.
How to Remove Product or Product-Category Slug from WooCommerce URL
Well, removing this is very easy process with the help of Rank Math SEO plugin, as you won’t need to do any coding stuff, and just clicking two times these prefix will get removed, let me show you step-by-step.
Step: 1: Install Rank Math SEO Plugin
The installation and activating process of Rank Math on WordPress is very easy.
You can do that in two ways:
Method 1: You can download it from WordPress plugin library:
Just go to Google and search “Rank Math Plugin download”.
- In the very first result, you will get WordPress official site.
- Click on that result. You will land on WordPress’s plugin library with Rank Math’s downloadable link.
- Simply download this zip file, and extract it.
- Then go to the WordPress admin dashboard. Click on: Plugins > Add New > Upload Plugin > Choose File > Install Now > Activate it.
Method 2: From the WordPress admin‘s dashboard.
This process is straightforward.
- Just go to the “Plugins” section.
- Click on add new and type Rank Math in the search box.
- It will provide the Rank Math plugin. Install it and activate it.
Step 2: Enable and Access the WooCommerce Settings in Rank Math
First, Open Rank Math SEO Dashboard.
Then, in modules section scroll down, find WooCommerce module, and then enable it. Then click on the settings button near to it.
Step 3: Enable the Option to Remove Slugs
Now you will see some WooCommerce settings and under it you will find an option remove base (to remove the product prefix from slug) and remove category base (to remove the product-category prefix from slug).
Just enable these options to remove the product & product-category prefix from the slugs.
After that just scroll down and click on the Save Changes button to save it, and you’re down.
Why Remove Product or Product-Category Slugs from WooCommerce URLs?
Default WooCommerce URLs
- Example of a product URL: https://yourstore.com/product/shoes/
- Example of a category URL: https://yourstore.com/product-category/footwear/
Benefits of Removing Slugs
Cleaner URLs: After removing the slug:
- https://yourstore.com/shoes/
- https://yourstore.com/footwear/
Improved SEO: Search engines prefer shorter and more descriptive URLs.
Better User Experience: Clean URLs are easier to remember and share.
Conclusion
Removing the /product/ and /product-category/ slugs from your WooCommerce URLs is a simple yet effective way to improve your website’s SEO and user experience. With the Rank Math SEO plugin, this process is quick and hassle-free.
Start optimizing your WooCommerce store today and enjoy the benefits of clean, SEO-friendly URLs!
⭐ Helping Bloggers in boosting their website & earnings with my awesome growth strategies since 2021. Digital Marketer | Content Creator | SEO Expert | Founder of Blogging Raptor & RaptorKit.