How to do REWRITE on Lighttpd for Magento
ust done a small case, our customer want to do the rewrite on the Lighttpd, so he can remover the ugly INDEX.PHP on the URL, here is the core code:
url.rewrite-once = (
“^(/(media|skin|js|downloader|app)/.*)$” => “$0″,
“^/(.*\.php)” => “$0″,
“.*\?(.*)” => “/index.php?$1″,
“^/(.*)” => “/index.php/$1″
)

