Ticket #11845: 11845.2.diff
File 11845.2.diff, 1.0 KB (added by , 14 years ago) |
---|
-
wp-admin/network.php
283 283 // Construct an htaccess file. 284 284 $htaccess_file = 'RewriteEngine On 285 285 RewriteBase ' . $base . ' 286 RewriteRule ^index\.php$ - [L] 286 287 287 288 # uploaded files 288 289 RewriteRule ^' . ( $vhost ? '([_0-9a-zA-Z-]+/)?' : '' ) . 'files/(.+) wp-includes/ms-files.php?file=$2 [L]' . "\n"; -
wp-includes/rewrite.php
1683 1683 $rules = "<IfModule mod_rewrite.c>\n"; 1684 1684 $rules .= "RewriteEngine On\n"; 1685 1685 $rules .= "RewriteBase $home_root\n"; 1686 $rules .= "RewriteRule ^index\.php$ - [L]"; // Prevent -f checks on index.php. 1686 1687 1687 1688 //add in the rules that don't redirect to WP's index.php (and thus shouldn't be handled by WP at all) 1688 1689 foreach ( (array) $this->non_wp_rules as $match => $query) {