Make WordPress Core

Changeset 13676


Ignore:
Timestamp:
03/11/2010 10:58:43 PM (15 years ago)
Author:
nacin
Message:

Don't check for the existence of index.php in the htaccess rewrite rules. props miqrogroove. see #11845

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/network.php

    r13675 r13676  
    284284$htaccess_file = 'RewriteEngine On
    285285RewriteBase ' . $base . '
     286RewriteRule ^index\.php$ - [L]
    286287
    287288# uploaded files
     
    304305?>
    305306            <li><p><?php printf( __( 'Add the following to your <code>.htaccess</code> file in <code>%s</code>, replacing other WordPress rules:' ), ABSPATH ); ?></p>
    306                 <textarea class="code" readonly="readonly" cols="100" rows="<?php echo $vhost ? 10 : 15; ?>">
     307                <textarea class="code" readonly="readonly" cols="100" rows="<?php echo $vhost ? 11 : 16; ?>">
    307308<?php echo wp_htmledit_pre( $htaccess_file ); ?>
    308309</textarea></li>
  • trunk/wp-includes/rewrite.php

    r13596 r13676  
    16841684        $rules .= "RewriteEngine On\n";
    16851685        $rules .= "RewriteBase $home_root\n";
     1686        $rules .= "RewriteRule ^index\.php$ - [L]"; // Prevent -f checks on index.php.
    16861687
    16871688        //add in the rules that don't redirect to WP's index.php (and thus shouldn't be handled by WP at all)
Note: See TracChangeset for help on using the changeset viewer.