/category slug
-
On my website i just remove /category like in this article https://yoast.com/help/how-to-remove-the-categories-prefix/
In my woocommerce slug was …../category/category_name, and now my categories doesn’t works. If I disabled this option, it not resolved my problem.
After I enabled the option “Keep category prefix in slugs” in Yoast SEO, all my WooCommerce product category URLs started returning 404 errors.
I realized the issue occurs only when I try to set the “Product category base” in Permalinks to
/category. If I change it to anything else (like/categoryy), everything works fine.I now understand that
/categoryis the default prefix for WordPress post categories, and enabling the Yoast option brought that back — which causes a conflict with WooCommerce product categories when trying to use the same slug.
The topic ‘/category slug’ is closed to new replies.