Remove category from your WordPress url

January 8, 2009 · Print This Article

Ever wanted to be able to finally remove the useless /category/ from your WordPress categories permalinks?

If yes, read on and get ready to hack your .htaccess file.

By default, WordPress category permalinks are displayed that way:

As you can see, the category in the url is pretty useless.

Here’s how to remove it:

First backup your .htaccess file. Then, open it and append the following line:

RewriteRule ^category/(.+)$$1 [R=301,L]

Once saved, your categories pages will be displayed like this:

Your choice for site templates and wordpress themes


Got something to say?

You must be logged in to post a comment.