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:

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
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.
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.