WordPress.org

Make WordPress Core

Ticket #20746: 20746.patch

File 20746.patch, 648 bytes (added by thomaswm, 5 years ago)

Fix .htaccess by adding additional RewriteCond

  • src/wp-admin/network.php

     
    521521RewriteCond %{REQUEST_FILENAME} -f [OR]
    522522RewriteCond %{REQUEST_FILENAME} -d
    523523RewriteRule ^ - [L]
     524RewriteCond %{REQUEST_URI} !^wp-(content|admin|includes).*$
    524525RewriteRule ^{$subdir_match}(wp-(content|admin|includes).*) {$rewrite_base}{$subdir_replacement_12} [L]
     526RewriteCond %{REQUEST_URI} !^wp-(content|admin|includes).*$
    525527RewriteRule ^{$subdir_match}(.*\.php)$ {$rewrite_base}$subdir_replacement_12 [L]
    526528RewriteRule . index.php [L]
    527529