Lighttpd url.rewrite rule for Zend Framework 2

I was having some major issues while attempting to run Zend Framework 2 on Lighttpd because my rewrite rules were not as easy to create as Apache.  Actually, I can’t say they are harder, just way different.  Here’s what seems to be working now though:


url.rewrite-if-not-file = ( "/(.*)$" => "/index.php?$1", )

By the way, I had to figure this out because, being adventurous, I wanted to run a web stack on iOS using Cydia packages. That way I have a mobile server on an old iPhone available on wifi for my iPad to develop with. Really dorky, but sort-of working so far, and allows me to work while offline without having to cart around a laptop.