Permalink structure changed after installing rank math

#870196
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello,

    We apologize for the issue you are facing with your permalink structure after installing Rank Math. It seems that the default behavior of Rank Math is to simplify the permalink structure by removing the category base, which can lead to the situation you described where subcategories are not displayed in the URLs.

    To address this, you can enable the Remove base option in Rank Math, which allows you to customize your WooCommerce permalink settings. Here’s how you can do it:

    1. Navigate to Rank Math SEO → General Settings → WooCommerce.
    2. Look for the Remove base option and enable it.

    This setting will help you manage how your product URLs are structured. However, if you need to set the subcategory as primary for multiple products, unfortunately, there isn’t a built-in batch option in Rank Math for this specific task. You may need to update each product individually.

    If you want to see more details on managing permalinks and settings in Rank Math, you can refer to our documentation here: WordPress Permalink Structure & Changing Individual URLs.

    Thank you for raising this concern, and we hope this helps resolve your issue! If you have any further questions or need assistance, feel free to reply to this ticket, and a human agent will assist you further.

    Sources:
    WordPress Permalink Structure & Changing Individual URLs » Rank Math

    Hello,

    This can’t be added as a default behavior as we already have the option to change the primary category in bulk using Bulk Editing:
    https://rankmath.com/kb/bulk-editing-in-rank-math/#num-5-5-advanced-quick-edit-options

    Alternatively, you can set your product’s primary term via CSV with Rank Math PRO:
    https://rankmath.com/kb/editing-seo-meta-at-scale/#csv

    To do this by default, you can create a filter to get the ID of your child category and set it to the rank_math_primary_product_cat meta key in the postmeta table in your website’s database.

    Here’s an example of how you would modify it:

    update_post_meta($post_id, 'rank_math_primary_product_cat', $cat_id);
    

    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 2 replies - 1 through 2 (of 2 total)

The ticket ‘Permalink structure changed after installing rank math’ is closed to new replies.