Trouble stripping categories from URLs

#773203
  • Resolved Anonymous
    Rank Math free

    I’m struggling with long URLs where I have domain.com/maincategory/subcategory and would like it to just show domain.com/subcategory when you are at the subcategory level. My permalink settings within WordPress are on Post Name, and I have enabled RankMath/General/Links to where “strip category base” is turned on and blue. Am I missing something? Blog entries themselves do not have an issue and are just domain.com/postname.

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

    I’m sorry to hear that you are facing issues with the category bases not being stripped from the URLs on your WordPress website despite enabling the “strip category base” option in Rank Math and setting your permalink structure to Post Name.

    Based on the information provided, it seems like you have followed the correct steps to enable the “strip category base” option in Rank Math. However, there could be a few reasons why the category bases are not being stripped from the URLs:

    1. Conflict with Other Plugins: Sometimes, conflicts with other plugins can prevent Rank Math from functioning correctly. Please ensure that there are no conflicting plugins causing this issue.

    2. Cache: Clearing your website cache might help resolve the issue. Cached pages might still show the old URLs until the cache is cleared.

    3. Permalink Structure: Double-check that your permalink structure is set to Post Name. Sometimes, changes in permalink settings may not take effect immediately.

    If you have already checked these points and the issue persists, I recommend assigning this ticket to our human support team by clicking on the available buttons so they can further investigate and assist you effectively.

    Thank you for bringing this concern to our attention. We appreciate your patience as we work to resolve this issue for you.

    Have a great day!

    Sources:
    How to Remove the Category Base From WordPress » Rank Math
    Rank Math General Settings
    WordPress Permalink Structure & Changing Individual URLs » Rank Math
    How to Disable Custom Product Redirection in Rank Math » Rank Math

    Hello,

    Thank you for contacting us and sorry for any inconvenience that might have been caused due to that.

    To help you investigate this issue further, we might need to take a closer look at your website and settings. Please follow these steps:

    • Edit the first post on this ticket and include your WordPress and FTP logins in the Sensitive Data section. This is a secure section that only our support staff can access.
      Sensitive Data Section
    • Make sure you take a complete backup of your website before sharing the information with us.
    • If you prefer, you can use this plugin to generate a temporary login URL to your website and share that with us instead: https://wordpress.org/plugins/temporary-login-without-password/
    • You can also use this plugin to monitor what changes our staff might make on your website (if any): https://wordpress.org/plugins/wp-security-audit-log/

    We appreciate your cooperation and patience.

    Thank you for choosing Rank Math.

    Anonymous
    Rank Math free

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    We are sorry for the confusion. Please note that the Strip Category Base option only removes the /category/ base from your category URLs which is added from WordPress by default. It doesn’t remove your parent category slug from your URLs.

    However, in order to achieve this, you can use an external plugin like Permalink Manager Lite which will allow you to remove the parent category slug from your ULRs.

    Hope that helps and please don’t hesitate to let us know if you have any other questions.
     
    Thank 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 4 replies - 1 through 4 (of 4 total)

The ticket ‘Trouble stripping categories from URLs’ is closed to new replies.