WooCommerce change category url and product base

I want to display the url’s like this:

for Category:
/webshop/categories/hoodies/

for products:

/webshop/categories/hoodies/test-product

how is this possible without giving me 404 not found

thanks

3 Answers
3

Got to Settings -> Permalinks ->
In ‘Product permalink base’ select the ‘Shop base with category’ option.

After saving if the .htaccess file is not writable then WordPress prompts you to create the .htaccess file and add the code which the mention after saving in the .htaccess file.

The reason that it is giving 404 error is that the Permalink structure needs the code to be added to .htaccess file or the settings which you saved will only apply when not using “default” permalinks for ‘Common Settings’.

Leave a Comment