0

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,

Devrim
  • 1,187
  • 4
  • 16
  • 29

1 Answers1

1

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