how-to-easily-remove-wordpress-category-url

How To Remove Category From WordPress URL

Those of you familiar with WordPress know that by default a “/category/” folder is displayed in the linking structure. Most will agree this extra folder isn’t necessary plus removing it alltogether makes your site more search engine friendly. There is however a couple of ways to safely remove the “/category/” section and that’s what I’ll be explaining in this post.

Remove Category From WordPress Permalink Structure Using .htaccess

If you want to manually remove “/category/” from your WordPress blog there’s an easy way to do this through your .htaccess file which is normally located in the root of your domain. Before getting started it’s highly recommended that you create a backup of your .htacess file just for safe measure in case there are any glitches or issues. This way you can easily revert back to your original linking structure if need be.

Next you’ll want to edit your .htaccess file either directly from your FTP client or locally using your favorite HTML or even text editor. Once your .htaccess file is open simply add the following line of code and be sure to change “mywpblog” with your actual domain.

RewriteRule ^category/(.+)$ http://www.mywpblog.com/$1 [R=301,L]

If your .htaccess file is writable you can also add the above line of code directly from your WordPress admin panel.

Install WP No Category Base Plugin

If altering your .htaccess file didn’t work successfully for whatever reason, or you just prefer to have the “/category/” permalink removed automatically there’s a useful plugin available that can do this for you instantly and hassle free. Download and install your copy of No Category Base, it’s a free WordPress plugin and very easy to use.