WP 404s manual rewrites to index.php
|Reported by:||vinskapur||Owned by:|
On one of my sites, the permalink structure is set to /news/%year%/%monthnum%/%day%/%postname%/ and its category base is /news/categories. I would like to add to and uncomplicate some of these rewrites for categories deserving of their own site sections - /music/, /onair/ etc - so I attempted to add the following rewrite in .htaccess as a starting point (before the WP block):
RewriteRule ^(news|onair|events|music)/?$ /index.php?category_name=$1 [QSA,L]
This rewrite actually works on the server side (ie /music/ rewrites to /index.php?category_name=music), but something in WordPress throws up the is_404() flag and it returns a file not found error page. I haven't found that something.