PDA

View Full Version : Attn: WordPress Users (Category Base)


Dan Schulz
02-16-2008, 08:58 AM
For those of you who are using the self-hosted version of WordPress (sorry WordPress.com users, but this probably doesn't apply to you) use either the Category Base Killer (http://www.brianshoff.com/wordpress/category-base-removal-plugin.htm) plugin or have directly modified the wp-includes/rewrite.php (applies to WordPress 2.3.x users such as myself) file to literally remove /category/ from the blog category URL string, please pay close attention.

It has come to my attention that sub-category indexes and category page references (such as /articles/page/2/ for example) will throw a 404 error (which is never a good thing for obvious reasons) unless you go to your WordPress Dashboard > Options > Permalinks and replace $postname$ with $postname.html (or .htm or .php).

Obviously this is very annoying, as there are those who use WordPress (such as myself) who would like to have absolutely no trace of WordPress's existance being left behind whatsoever (especially those of you who've had WordPress blogs running for a while, which I am not a part of - yet).

My question to you is this. Aside from either adding the file extension to the permalink structure or rattling the sabers over at Automattic to get the developers to fix this problem once and for all, are there any other options available to remove /category/ from a WordPress installation's URL string for category indexes (so that a link to www.example.com/articles/ doesn't become www.example.com/category/articles/ when a category index link is clicked (or when those links are generated by WordPress in the first place)?