WordPress.org

Make WordPress Core

Ticket #12136: 12136.diff

File 12136.diff, 1.1 KB (added by nacin, 4 years ago)
  • wp-admin/includes/htaccess.ms

     
    22RewriteBase BASE/ 
    33 
    44#uploaded files 
    5 RewriteRule ^(.*/)?files/$ index.php [L] 
    6 RewriteCond %{REQUEST_URI} !.*wp-content/plugins.* 
    7 RewriteRule ^(.*/)?files/(.*) wp-includes/ms-files.php?file=$2 [L] 
     5RewriteRule ^([^/]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L] 
    86 
    97# add a trailing slash to /wp-admin 
    10 RewriteCond %{REQUEST_URI} ^.*/wp-admin$ 
    11 RewriteRule ^(.+)$ $1/ [R=301,L] 
     8RewriteRule ^([^/]+/)?wp-admin$ $1wp-admin/ [R=301,L] 
    129 
    1310RewriteCond %{REQUEST_FILENAME} -f [OR] 
    1411RewriteCond %{REQUEST_FILENAME} -d 
    1512RewriteRule . - [L] 
    16 RewriteRule  ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L] 
    17 RewriteRule  ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L] 
    18 RewriteRule . index.php [L] 
    19  
     13RewriteRule  ^([^/]+/)?(wp-(content|admin|includes).*) $2 [L] 
     14RewriteRule  ^([^/]+/)?(.*\.php)$ $2 [L] 
     15RewriteRule . index.php [L] 
     16 No newline at end of file