From 8a287c5c631777cb6f5f210c8f2ccb9aae52926f Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Thu, 11 Mar 2010 23:33:01 +0000 Subject: [PATCH] Don't check for the existence of index.php in the htaccess rewrite rules. props miqrogroove. see #11845 git-svn-id: https://develop.svn.wordpress.org/trunk@13678 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/rewrite.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/rewrite.php b/wp-includes/rewrite.php index 579a13c62f..d80ad00e6d 100644 --- a/wp-includes/rewrite.php +++ b/wp-includes/rewrite.php @@ -1683,7 +1683,7 @@ class WP_Rewrite { $rules = "\n"; $rules .= "RewriteEngine On\n"; $rules .= "RewriteBase $home_root\n"; - $rules .= "RewriteRule ^index\.php$ - [L]"; // Prevent -f checks on index.php. + $rules .= "RewriteRule ^index\.php$ - [L]\n"; // Prevent -f checks on index.php. //add in the rules that don't redirect to WP's index.php (and thus shouldn't be handled by WP at all) foreach ( (array) $this->non_wp_rules as $match => $query) {