Bug with custom .htaccess aliases and 404
-
I had a couple of .htaccess urlrewrite aliases to access some of my posts. It went something of the form
RewriteRule ^foo/alias home/blog/index.php?p=222
Now, when you access foo/alias, the content was being generated right but the HTTP response code was being set to 404.
I’ve got around this by commenting out a line in the function parse_query in wp-includes/classes.php –
if ('404' == $qv['error']) {
//$this->is_404 = true;
Works fine for me, I get a 200 now. I’ll leave it to the enlightened to work up an elegant fix if they feel necessary. Is there a bugzilla install where I can file a bug?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Bug with custom .htaccess aliases and 404’ is closed to new replies.