EXPLAINING THE PROBLEM:
Let’s say that one of your categories is food > pizza. The main URL will be:
If you try to replace “food” with anything else, it will work anyway (try on yourself with your own site!). For example:
It works even if you remove the main category:
The result is that you will get a lot of duplicated content: several pages with different URLs but same data.
This plugin automatically improves WooCommerce URL structure for product categories/subcategories, removing (redirecting) duplicated contents.
If you go to:
You will be automatically redirected to:
www.example.com/products/food/pizza/ (the main, unique, “official” URL).
Just install the plugin and it will start doing its job, automatically. No configuration is needed!