WordPress.org

Make WordPress Core

Ticket #11845: 11845.diff

File 11845.diff, 585 bytes (added by miqrogroove, 5 years ago)
  • wp-includes/rewrite.php

     
    16831683                $rules = "<IfModule mod_rewrite.c>\n"; 
    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) 
    16881689                foreach ( (array) $this->non_wp_rules as $match => $query) {