up vote 0 down vote favorite
share [g+] share [fb]

We are using Zend Framework, we switched from apache to lighttpd, main htaccess file for zend is this:

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d   
RewriteRule !\.(js|ico|gif|jpg|png|css)$ /index.php

What is the lighttpd equivalent of this ? I found one line here,

url.rewrite-once = (".*\.(js|ico|gif|jpg|png|css)$" => "$0", "" => "/index.php")

but it doesn't first two lines of the original (

if file and dir exists then don't

lines)

Thanks,

link|improve this question

feedback

1 Answer

up vote 1 down vote accepted

There is a open feature request but it's over 2 years old. Request: mod_rewrite check if file exists (like mod_rewrite in apache)

There is also a user commited patch available

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.