Woocommerce slug

#1114350
  • Hi Rank Math team,

    I’m having a small issue with my WooCommerce product category URLs.

    Right now, child categories display their full hierarchy in the URL, for example:
    categorie-produit/bijoux/bagues/

    However, the same category is also accessible via a shorter URL:
    categorie-produit/bagues/

    This creates a duplicate content issue.

    I’d like to:

    Completely remove the parent hierarchy from product category URLs (so they appear as /categorie-produit/category-name/ only),

    Ensure that only one canonical URL is accessible for each category.

    Could you please confirm if Rank Math can handle this behavior or if it’s related to WooCommerce’s native structure?

    Thanks a lot for your help!

    Best regards,
    Vincent CADEAU

Viewing 1 replies (of 1 total)
  • Hello,

    We apologize for the issue you are facing with your WooCommerce product category URLs. Thank you for raising this concern.

    Rank Math can indeed help you manage your product category URLs and prevent duplicate content issues. Here’s how you can achieve your goals:

    1. Remove Parent Hierarchy from URLs: You can remove the parent category slugs from your product category URLs by enabling the Remove Parent Slugs option in Rank Math. This will allow your URLs to appear as /categorie-produit/category-name/ instead of including the parent categories.

      • To do this, navigate to Rank Math SEO → General Settings → WooCommerce and toggle the Remove Parent Slugs option to On.
        remove parent slugs
    2. Set Canonical URLs: Rank Math automatically adds canonical URLs to your pages, including product categories. However, if you need to set them manually, you can do so by visiting the product category page, scrolling down to the Rank Math SEO Meta box, and navigating to Advanced → Canonical URL. Here, you can specify the canonical URL for that category.
      Rank Math meta box Advanced tab

    By following these steps, you should be able to streamline your URLs and ensure that only one canonical URL is accessible for each category, thus avoiding any duplicate content issues.

    If you would like more comprehensive assistance or a professional setup, we recommend our Rank Math professional setup service, which requires a PRO subscription. This service ensures that your plugin setup is fully correct and adheres to the latest SEO standards.

    If you have any further questions or need additional assistance, please feel free to reply to this ticket, and a human agent will assist you further.

    Thank you for your understanding!

    Sources:
    How to Optimize a Category Page » Rank Math
    How Rank Math Prevents Duplicate Content Issues in a WooCommerce Store » Rank Math
    How to Disable Custom Product Redirection in Rank Math » Rank Math

    This is an automated reply from Rank Math Support Bot. If you need further assistance, please reply to this topic and a human support agent will reply to you shortly.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this ticket.