[wp-trac] [WordPress Trac] #11845: mod_rewrite Should Not Be Used to Check Existence of index.php

WordPress Trac wp-trac at lists.automattic.com
Mon Mar 1 20:34:39 UTC 2010


#11845: mod_rewrite Should Not Be Used to Check Existence of index.php
--------------------------+-------------------------------------------------
 Reporter:  miqrogroove   |       Owner:     
     Type:  enhancement   |      Status:  new
 Priority:  normal        |   Milestone:  3.0
Component:  Optimization  |     Version:     
 Severity:  normal        |    Keywords:     
--------------------------+-------------------------------------------------

Comment(by Denis-de-Bernardy):

 alternative approaches:

 {{{
 RewriteCond %{REQUEST_FILENAME} !-f [OR]
 RewriteCond %{REQUEST_FILENAME} !-d
 RewriteRule ^ - [S=1]
 RewriteRule . /index.php [L]
 }}}

 {{{
 RewriteCond %{REQUEST_FILENAME} !-f [OR]
 RewriteCond %{REQUEST_FILENAME} !-d
 RewriteRule ^ - [L]
 RewriteRule . /index.php [L]
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11845#comment:14>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list