Rather than trying to do this with htaccess, I recommend this plugin. I’ve used it on several of my own sites and it works great:
http://wordpress.org/extend/plugins/wp-no-category-base/
And what about the:
Compatible up to: 2.8.4
Last Updated: 2009-6-26
message?
The documentation hasn’t been updated recently, but that doesn’t mean the plugin has stopped working. I used it on several 2.9.2 sites with no problem. I’ve not tested it with 3.0.x yet, but why not give it a try? If it doesn’t do what you want just deactivate it.
Cheers for the advise ambrosite,
It’s just that I’ve installed incompatible plugins before which gave me hours of restoring. But hey wtf, if you say so I’ll give it a try 😉
And sure enough it works like a charm in WP 3.0.1!
I used this plugin and the category “Home” is still on the sidebar. Why won’t it disappear as well? When I click on it..it goes to 404 Error File Not Found
I have spent hours and days on this one problem! I hope you can help me figure this out! 🙁
jackieflanagan@mac.com
You’re probably mistaken this plugin for something else. As the name suggests this plugin will completely remove the mandatory ‘Category Base’ from your category permalinks ( e.g. myblog.com/category/my-category/ to myblog.com/my-category/ ).
The easiest way is to use the following code in your sidebar:
<?php wp_list_categories('show_count=1&exclude=2&title_li=<h2>Categories</h2>'); ?>
exclude=2, 2 being the category ID number you want to exclude.