EXPLAINING THE PROBLEM:
Let’s say that one of your categories is food > pizza. The main URL will be:
www.example.com/products/food/pizza/
If you try to replace “food” with anything else, it will work anyway (try on yourself with your own site!). For example:
www.example.com/products/test/pizza/
www.example.com/products/lorem-ipsum/pizza/
www.example.com/products/pasta/pizza/
It works even if you remove the main category:
www.example.com/products/pizza/
The result is that you will get a lot of duplicated content: several pages with different URLs but same data.
FIXING IT:
This plugin automatically improves WooCommerce URL structure for product categories/subcategories, removing (redirecting) duplicated contents.
If you go to:
www.example.com/products/a-random-word/pizza/
You will be automatically redirected to:
www.example.com/products/food/pizza/ (the main, unique, “official” and canonical URL).
HOW TO:
Just install the plugin and it will start doing its job, automatically. No configuration is needed!
CHANGELOG:
1.03 – Bug fixes
1.02 – Now the redirect preserves the original querystring (filters or sorting), if present.
1.01 – Fixed a bug that was causing an unwanted redirect to the frontend when filtering by category from the admin panel—thanks to paolo_rossato for the bug report!
1.00 – Initial release
[eltd_button size=”huge-full-width” type=”outline” text=”Download & Demo Links” custom_class=”#” icon_pack=”font_awesome” fa_icon=”” link=”” target=”_blank” color=”” hover_color=”” background_color=”” hover_background_color=”” border_color=”” hover_border_color=”” font_size=”” font_weight=”” margin=””]
Demo = Category URLs Fixer for WooCommerce
[eltd_button size=”huge” type=”” text=”Full Live Demo” custom_class=”” icon_pack=”font_awesome” fa_icon=”fa-laptop” link=”https://codecanyon.net/item/category-urls-fixer-for-woocommerce/5996576″ target=”_blank” color=”” hover_color=”” background_color=”” hover_background_color=”” border_color=”” hover_border_color=”” font_size=”” font_weight=”” margin=””]
Kindly Note: We update new contents like WordPress Themes, Plugins, PHP Scripts everyday. But remember that you should never use this items in a commercial website. All the contents posted here for development & testing purpose only. We’re not responsible for any damage, use at your own RISK! We highly recommend to buy Category URLs Fixer for WooCommerce from the The Developer ( raneri ) website. Thank you.
Download = Category URLs Fixer for WooCommerce-[Updated].zip