[wp-trac] [WordPress Trac] #12497: htaccess.ms has a slightly under-optimized rule

WordPress Trac wp-trac at lists.automattic.com
Wed Mar 3 12:22:34 UTC 2010


#12497: htaccess.ms has a slightly under-optimized rule
-------------------------------+--------------------------------------------
 Reporter:  Denis-de-Bernardy  |       Owner:     
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  3.0
Component:  Multisite          |     Version:  3.0
 Severity:  normal             |    Keywords:     
-------------------------------+--------------------------------------------
 it goes:

 {{{
 RewriteCond %{REQUEST_FILENAME} -f [OR]
 RewriteCond %{REQUEST_FILENAME} -d
 RewriteRule . - [L]
 }}}

 inconveniently, this does not catch the root folder, because the latter
 won't match the dot.

 this will, however:

 {{{
 RewriteCond %{REQUEST_FILENAME} -f [OR]
 RewriteCond %{REQUEST_FILENAME} -d
 RewriteRule ^ - [L]
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12497>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list