Lighttpd – rewrite .php scripts in a certain folder

This is how:

url.rewrite-once = (
“^/path/folder(\?.*)?$” => “/path/folder.php$1”
)