Drupal and lighttpd mod_rewrite settings
Lighttpd is awesome and very fast webserver. But has one big disadvantage – is not reading apache .htaccess files with rewrite settings. Unfortunatley you need to create them manually in config file. How? Examples are below:
url.rewrite-final = (
"^/([^.?]*(\.xml|\.html)?)(\?(.+))?$" => "/index.php?q=$1&$4"
)
and when Drupal is not in root directory:
url.rewrite-final = (
"^/drupal/([^.?]*(\.xml|\.html)?)(\?(.+))?$" => "/drupal/index.php?q=$1&$4"
)