Developing a site with WordPress I needed to delete the Category base from the URL.
By default WordPress adds category to the categories.
http://php.quicoto.com/category/wordpress/
I was Googling arround and I found two solutions.
A. Code Solution
Add this line to your .htaccess file (in your root WordPress installation folder)
B. Plugin Solution
You can use this plugin wich does not require any kind of coding or set up.
WP No Category Base
The plugin requires no setup or modifying core wordpress files and will not break any links. It will also take care of redirecting your old category links to the new ones.
Download it from: http://wordpress.org/extend/plugins/wp-no-category-base/


Actually the plugin breaks one link: The category feed link, it doesn’t work, so you’ll have to use both solutions at the same time.
Oh really?
I’ll make testing and I’ll edit the post with it.
Thanks JMLeon
JMLeon I tested the Category Feed and it works for me without the .htaccess code.
It was in a local install using Outlook 2007 feed reader. Both feeds worked.
http://domain.com/category/XXXX/feed/
http://domain.com/XXXX/feed/
Maybe I should do the test online
Regards.
I found problems and had to write by hand every feed that wordpress created, don’t know if it’s a problem of the theme b/c it was not a new one and I found some very weird things on it.
Code Solution is not working for me. That just redirects to a post or returns a 404 if nothing is found.
Plugin Solution did it!
One way or the other, glad it worked !
I tried using WP No Category Base on my website but it didn’t work because it’s removing subdomains as well. Is there are other way to remove category_base?
Would removing the category base cause a URL conflict? How would WP know if the item is a category or a page or a post?
The the Plugin should work just fine.
However I’d always recommend using /category/ in the URL.
It’s more SEO friendly and easier for the user!
Cheers