RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule !\.(js|ico|gif|jpg|png|css)$ /index.php
This is Zend htaccess, I can't seem to find a lighttpd equivalent of this..
Thanks, D
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.
Sign up to join this communityI'm pasting the solution we found and the url were we found it, in case we need it in the future and for the benefit of other people reading this post.
So this is a neat trick that does work on the lighttpd rewrite system.
url.rewrite-once = (
".*\?(.*)$" => "/index.php?$1",
".*\.(js|ico|gif|jpg|png|swf|css|html)$" => "$0",
"" => "/index.php"
)
http://smartycode.com/performance/zend-framework-application-lighten-the-load-server/
yet we haven't found the solution for first two lines RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d
lighty has no solution for it and it seems there won't be any
review http://redmine.lighttpd.net/issues/985
there is a patch