WooCommerce is the most downloaded plugin for WordPress. Its fast, stable and free! Its great, but its difficult to setup pretty permalinks. Due the way WooCommerce is build, it always adds ‘product-category’ and ‘product’ to the permalinks. If you want to have this pretty, there are a few things you should know, and need to fix this.
What you need to do to achieve pretty permalinks
If this is the end result you are searching for, please follow the steps:
“webshop.com/category/product” or “webshop.com/category/subcategory/product”
1. Go to your ‘settings’ and open ‘permalinks’. The first section are the ‘common settings’. To have pretty permalinks change the ‘custom structure’ to: /%category%/%postname%/ This is for all your posts in the website. This is not obligatory.
2. Next, the ‘optional section’. You can leave this totally blank. Make sure all rows are empty.
3. The last step is the ‘productpermalink base’. Select the ‘custom base’ option, the last line. Change this to: /product/%product_cat%
4. Save the changes.
And don’t forget to use the Best Pretty Permalinks Plugin WooCommerce!