WordPress 2.5.1 added a really powerful feature to register_taxonomy(): automatic registration of permalinks and query vars to match the taxonomy. Well, theoretically it added that feature. It wasn’t working in practice. After some searching yesterday and today, I finally found the bug and worked up a fix. I made a diff and set off to [...]
Posted May 20, 2008 by Casey Bisson
Categories: Technology. Tags: bug, bugfix, code, fix, hacking, open source, permalinks, register_taxonomy(), wordpress. 3 Comments.
After reporting weirdness last week I finally sat down with a completely clean and virgin install of WordPress 2.3.2 and traced what happens when you make a permalink request for a non-existent URL.
Here are two sets of URLs to use as examples and context:
These are valid URLs:
http://site.org/archives/101
http://site.org/page-name
These are _not_ valid URLs:
http://site.org/archivezorz/101
http://site.org/favicon.ico
Valid URLs get parsed, the [...]
Posted January 18, 2008 by Casey Bisson
Categories: Technology. Tags: 404, behavior, hacking, mysql, optimization, permalinks, wordpress. One Comment.
I made a mistake in changing my WordPress permalinks, but by the time I’d discovered it my blog had already been indexed. Fixing the permalinks meant breaking those indexed URLs, leading to a bad user experience, but leaving them as is wasn’t really an option.
Last night, after getting 404′d while using Google to search my [...]
Posted April 19, 2007 by Casey Bisson
Categories: Technology. Tags: 404, apache rewrite, mod_rewrite, permalinks, redirect, rewrite, rewrite rules, wordpress. 9 Comments.