Insight: How To Remove Category From Your URLs In WordPress
This post is for you if you are looking for the answers to the following questions:
How To Remove Category From Your URLs In WordPress ?
How To Remove The Category Base From WordPress ?
How To Remove The Categories Prefix ?
How To Remove The Category Base From Your URLs In WordPress ?
If you think you are into the right blogpost then let’s get into the solution to all these questions.
How To Remove Category From Your URLs In WordPress
Remove Category From Your URLs With Yoast’s SEO Plugin
We will use Yoast’ SEO plugin in this step. You need to install Yoast’s SEO plugin at first. After installing and activating the plugin, follow the following steps:
- Go to Yoast SEO
- Click on Advanced
- Click on the Permalinks tab
- You will see something like this -> Check Strip the category base (usually /category/) from the category URL.
- Click on the Remove option and you are done with removing the category from URLs.
Remove Category Base From Your URLs With .htaccess
You need to be careful with this option as you are going to edit the .htaccess file. Before editing this file, please backup your .htacess file. You need to add the following line of code in the .htaccess file to remove the category base.
RewriteRule ^category/(.+)$ http://www.site.com/$1 [R=301,L]
Remove Category URL Plugin
In this method, we will use a plugin called as a Remove Category URL plugin to remove the category base. It’s a very simple and easy to use plugin. This plugin will remove the ‘/category/’ from your permalinks ( e.g.
Note: Let us know if there are any errors in this WordPress tutorial post. We always welcome your suggestions and recommendations which will definitely help us to improve our blogs.