If you also want to take the term category or tag out from the URL. Which can turn yourwebsite.com/category/mango to yourwebsite.com/mango and yourwebsite.com/tag/apple to yourwebsite.com/apple.
To do this you can use simple methods.
We are going to take Categories first and then Tags.
Remove category base from WordPress URL
To remove the category base from your website URL structure, You need to install the plugin called WP no category base. This plugin is there for quite some time. This is one of the most easy to use plugin to remove category base from WordPress URL. To use this you don’t have to do much all you have to do is install this plugin and activate it.
This plugin does all the work automatically, after activation you won’t be able to see the category base in you URLs. This plugin is so light that it barely any load. changes all the category URLs just in an instant.
If you are using SEO by yoast then you have an option in that too. This plugin is also featured in our list of best SEO plugins. When you go to Dashboard»SEO»Advanced»Permalinks There you will see an option which can strip the category base, you just have to tick it and save the settings.
If you have the Yoast plugin then you don’t have to install the other one, even though it barely adds any load to the website, it’s not useful to add plugins if not needed. Now you have successfully removed the category base from your URL structure.
Remove Tag Base from WordPress URL
Now let’s start with removing tag base from WordPress URL. To do this first you have to install the plugin called WP no tag base. This plugin is very simple to use as the one above, even with this you just have to install the plugin and activate it. All the thing will be taken care automatically.
With barely any load on the website, you don’t have to worry about loading time. To use this you don;t have to make any changes in the WordPress files.
This is it, you have successfully removed the category and tag base form WordPress URL. With this you can totally remove these, but if you like to change the catagory and tag base then you should read the tutorial of how to change the category and tag base form WordPress URL.
Now you can change and remove category and tag base with these methods.