WordPress.org

Make WordPress Core

Ticket #11845: 11845.3.diff

File 11845.3.diff, 669 bytes (added by miqrogroove, 5 years ago)

My mistake, sorry.

  • 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. 
     1686                $rules .= "RewriteRule ^index\.php$ - [L]\n"; // Prevent -f checks on index.php. 
    16871687 
    16881688                //add in the rules that don't redirect to WP's index.php (and thus shouldn't be handled by WP at all) 
    16891689                foreach ( (array) $this->non_wp_rules as $match => $query) {