0

I have added the product permalink in Settings ->Permalinks to Custom Base /shop/%product_cat% it works fine. But if I updated it to /%product_cat% products page working fine but website pages and posts are redirecting to 404 page. Any idea?

2

Well, WooCommerce documentation clearly states

Please note: The product custom base should not conflict with the taxonomy permalink bases. If you set the product base to ‘shop’ for example, you should not set the product category base to ‘shop’ too as this will not be unique and will conflict. WordPress requires something unique so it can distinguish categories from products.

https://docs.woocommerce.com/document/permalinks/#section-2

I think this may be a generic WP level rewrite issue: how do you match things across entity types (posts and taxonomies). There are big discussions on uh... rewriting the core rewrite systems because it has become a bottleneck https://core.trac.wordpress.org/ticket/36292 but it's probably a long-winded project.

  • lol that ticket was active for a full month, much longer than I would have expected :) – Mark Kaplun Apr 28 '17 at 15:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.