[wp-trac] [WordPress Trac] #4544: WP 404s manual rewrites to
index.php
WordPress Trac
wp-trac at lists.automattic.com
Tue Jun 26 20:27:22 GMT 2007
#4544: WP 404s manual rewrites to index.php
-----------------------+----------------------------------------------------
Reporter: vinskapur | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone:
Component: General | Version: 2.3
Severity: normal | Keywords:
-----------------------+----------------------------------------------------
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.
--
Ticket URL: <http://trac.wordpress.org/ticket/4544>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list