Remove parent category URL from child category URL

#686294
  • Resolved Kasper
    Rank Math free

    Hello,

    I already know that it is possible to strip the category base.
    But is it somehow possible to also strip the /parent-category/ when creating a child category?

    Eg. right now i have a wordpress category called website.com/clothing/
    I now want to create a child category to clothing, called womens clothing. BUT, i don’t want this URL: website.com/clothing/womens-clothing/
    I want this: website.com/womens-clothing/

    How is this possible? If it is possible, please elaborate on how to fix it.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,

    We apologize for the inconvenience you’re experiencing. To remove the parent category slug from the URL of a child category, you can enable the “Remove parent slugs” option in Rank Math. This will allow you to have shorter URLs for your child categories.

    Once you’ve enabled the “Remove parent slugs” option, the parent category slug from the URL will be removed, and your URL will now be shorter and look like this: `https://rankmath.com/wp-content/uploads/2022/01/remove-category-base-option.jpg

    You can find this option by navigating to Rank Math SEO → General Settings → Links. If this option isn’t available, ensure you use the Advanced mode of Rank Math.

    If you need further assistance, please feel free to ask.

    Sources:
    How to Optimize a Category Page » Rank Math
    WordPress Permalink Structure & Changing Individual URLs » Rank Math

    Kasper
    Rank Math free

    Thanks for the quick reply. However, I am using the advanced mode, but I cant see the option.
    I dont know why you are referring to woocommerce categories. I am talking about normal wordpress post categories, please help me 🙂

    Hello,

    Apologies for the confusion.

    Rank Math is unable to remove the parent category for your child category slug.

    In this case, you may have to use a permalink manager plugin like https://wordpress.org/plugins/permalink-manager/ to achieve that setup of URLs for your child category URLs.

    Hope that helps.

    Kasper
    Rank Math free

    Hi Reinelle,

    Is it really true that RankMatch can’t ensure the permalinks only have the lowest child-category listed? Do I really need to install a plugin for this?

    Hello,

    Thank you for your patience.

    Unfortunately, that is correct. Rank Math can only remove the parent slug of your product category in WooCommerce:
    https://rankmath.com/kb/general-settings/#remove-parent-slugs

    Since you mentioned that it is for your normal posts, then you may need to use a separate plugin to achieve that specifically.

    Looking forward to helping you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)

The ticket ‘Remove parent category URL from child category URL’ is closed to new replies.