mindspins
Member
Posted 1 year ago #
Is there a way to remove the word "category" from the url using htaccess?
If I use:
RewriteRule ^category/(.+)$ http://techniekinbeeld.nl/$1 [R=301,L]
when the permalink is set to:
%post_id%/%category%/%postname%
all posts work, but categories give error 404.
Forgive me for posting this once again since previous posts gave an error using the permalink in the topic title.
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/
mindspins
Member
Posted 1 year ago #
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.
mindspins
Member
Posted 1 year ago #
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 ;-)
mindspins
Member
Posted 1 year ago #
And sure enough it works like a charm in WP 3.0.1!
jflanangan55
Member
Posted 1 year ago #
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
mindspins
Member
Posted 1 year ago #
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.