The documentation recommends:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
... but wouldn't this be simpler?
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-s
RewriteRule .* index.php
Glen.
--
View this message in context: http://www.nabble.com/Recommended-mod_rewrite-rule-tp20360712p20360712.html
Sent from the Zend MVC mailing list archive at Nabble.com.
没有评论:
发表评论