remove category base – also for CPT possible

#25620
  • Resolved Thomas Bunte
    Rank Math business
    Content AI Creator

    Is it possible with rankmath to also hide the base of an Custom Post Type as it was possible for WooCommerce Products?

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting Rank Math today.

    I am afraid that this option is not available on the plugin settings but you can easily create a redirection to remove a certain word from the URL using the following steps:

    – Create a new Regex redirection and in the source field add below code:
    ^wordtoreplace/(.*)
    – Enter the following code on the destination field:
    $1

    Here is an example, before the redirection the URL looks like this:
    https://www.domain.com/wordtoreplace/post-url/

    After the redirection, this will look like so:
    https://www.domain.com/post-url/

    Looking forward to helping you. 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 1 replies (of 1 total)

The ticket ‘remove category base – also for CPT possible’ is closed to new replies.