Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other strange wordpress category problem Re: strange wordpress category problem

#64860
supperman
Participant

This is a text copy from:
http://www.wprecipes.com/how-to-remove-category-from-your-wordpress-url


By default, WordPress category permalinks are displayed that way:

http://www.catswhocode.com/blog/category/wordpress

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/(.+)$ http://www.yourblog.com/$1 [R=301,L]

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

http://www.catswhocode.com/blog/wordpress

WIll i be making more trouble in future with this, or is it safe?