From b6d0d21f63c823dda153374055301d61707b898e Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 1 Dec 2005 01:34:29 +0000 Subject: [PATCH] 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 --- wp-includes/classes.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wp-includes/classes.php b/wp-includes/classes.php index 17f120be05..a6f7e638a6 100644 --- a/wp-includes/classes.php +++ b/wp-includes/classes.php @@ -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.