Removing /category and /tags from permalinks

#703827
  • Resolved Anonymous
    Rank Math free

    Hi,
    Can we able to remove the /category and /tag.
    Example:
    General category: test.com/category/dummypost to test.com/dummypost
    With Subcategory: test.com/category/subcategory/dummypost to test.com/dummypost
    Tag: test.com/tag/dummypost to test.com/dummypost

    Does the strip category option works properly for subcategory also.

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

    I’m sorry for the inconvenience you’re facing. Yes, you can remove the “/category” and “/tag” from your permalinks using the “Strip Category Base” option in Rank Math’s General Settings. This option will work for subcategories as well, allowing you to have cleaner and shorter URLs.

    To enable this option, you can navigate to Rank Math SEO → General Settings → Links and locate the “Strip Category Base” option. Here’s a screenshot to help you find it:

    Strip Category Base

    Enabling this option will result in URLs like the ones you’ve mentioned:

    • General category: test.com/category/dummypost to test.com/dummypost
    • With Subcategory: test.com/category/subcategory/dummypost to test.com/dummypost
    • Tag: test.com/tag/dummypost to test.com/dummypost

    If you have any further questions or need assistance with this, please feel free to ask.

    Kind regards.

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

    Anonymous
    Rank Math free

    Hi,
    Thanks for your response. This method is working only for the category and subcategory. But it was not working as expected in /tag. even after enabling the Strip Category Base option in general. I am using rankmath for blogging purpose.

    Example
    test.com/tag/blogpost/ to test.com/blogpost/

    Hello,

    Apologies for the confusion.

    For your single posts, the tags should not be included. You may visit your WordPress settings > Permalinks and use the post name only.

    Unfortunately, Rank Math can only remove the category base for category URLs.

    In case you are referring to tag URLs, you may need to use a permalink manager plugin to modify your tag’s permalinks that can specifically address it.

    Here’s a plugin you can try and see if you can achieve that:
    https://wordpress.org/plugins/permalink-manager/

    Hope that helps.

    Anonymous
    Rank Math free

    Hello Reinelle,
    Thanks for your response.I have tried with this plugin but removing the /tag from permalink is not available in free version. Is there any alternative plugin for this.

    Hello,

    Thank you for your patience.

    In this case, you may try another plugin like this:
    https://wordpress.org/plugins/wp-no-base-permalink/#description

    Hope that helps.

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

You must be logged in to reply to this ticket.