Don't attempt to match the index against a rule. This fixes problems with /index.php requests matching agagainst the %category% rewrite rules.

git-svn-id: https://develop.svn.wordpress.org/trunk@3252 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2005-12-01 01:34:29 +00:00
parent aa5674dc27
commit b6d0d21f63
1 changed files with 4 additions and 0 deletions

View File

@ -1470,8 +1470,12 @@ class WP {
if ( ! empty($pathinfo) && ($wp_rewrite->index != $pathinfo) ) {
$request = $pathinfo;
} else {
// If the request uri is the index, blank it out so that we don't try to match it against a rule.
if ( $req_uri == $wp_rewrite->index )
$req_uri = '';
$request = $req_uri;
}
$this->request = $request;
// Look for matches.