• Resolved zirto

    (@zirto)


    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 /category is 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.

    • This topic was modified 1 year, 1 month ago by zirto.
Viewing 1 replies (of 1 total)
  • Plugin Support Maybellyne

    (@maybellyne)

    Hello @zirto,

    Thanks for reaching out. I’ve addressed your concerns below:

    On my website i just remove /category like in this article https://yoast.com/help/how-to-remove-the-categories-prefix/

    Removing category prefix provided in that help center article only applies to posts

    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.

    Yoast SEO doesn’t control your product category prefix

    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.

    Changing your permalinks settings can seriously impact many things on your site, including your search engine visibility. It should almost never be done on a live website. This explains why your WooCommerce product category URLs started returning 404 errors. It’s not because you removed the post category prefix with Yoast SEO. Learn about why permalinks are important for SEO.

    Furthermore, Yoast SEO doesn’t have a feature to remove the product category prefix because it’s not recommended. In the WooCommerce documentation, they don’t advise this in particular. You can read more about it here: https://docs.woocommerce.com/document/removing-product-product-category-or-shop-from-the-urls/

    Removing /product//product-category/, or /shop/ from the URLs is not advisable due to the way WordPress resolves its URLs. It uses the product-category (or any other text for that matter) the base of a URL to detect that it is a URL leading to a product category.

    I recommend reverting to the default settings.

Viewing 1 replies (of 1 total)

The topic ‘/category slug’ is closed to new replies.