WordPress has awesome way to handle it’s URLs with the name called Permalinks. It gives flexibility play around with almost everything in the URLs. Apparently, you can change the category and tag base from your WordPress Dashboard settings page. You can specify a string to replace the default “Category” & “tag” in the URL, as shown in the following screenshot.
But, if you do not specify one then it defaults to category & tag. Let’s see how you can hack your .htaccess file to get rid of this useless words in the URL.
- Connect to your website server using a FTP client.
- Take backup of your .htaccess file. Now open it in editor and append the following line –
RewriteRule ^category/(.+)$ http://www.yourblog.com/$1 [R=301,L]
- Save the file and now you can access your category pages without category in the URL, such as http://yourblog.com/catname
That’s one way of doing it, however if you do not want to go the .htaccess way you can simply install this plugin called No Category base plugin . I have not tested it myself, but heard it works like it’s intended to.
Stay Digified!!
Sachin Khosla