lighttpd mod_rewrite rule to executable cgi
===

I've installed lighttpd and activated mod_rewrite and I just want do the following:

 1. index.htm is the directory index
 2. using an executable cgi-script
 3. /[a-zA-Z0-9]/index.htm rewrites to $1.htm

What I've done in my lighttpd.conf is:

 1. `index-file.names = ( "index.htm" )`
 2. `cgi.assign = ( ".htm" => "/usr/sbin/myExecutable" )`
 3. `url.rewrite-once = ( "^/([a-zA-Z0-9]+)/index.htm" => "/$1.htm" )`

That works as long as the file exists... but my idea is to rewrite directly to my cgi-script because I think it makes no sense to create an empty .htm-file only to make sure that the file exists. What I want is something like this:

    url.rewrite = ( "^/([a-zA-Z0-9]+)/index.htm" => "/usr/sbin/myExecutable?page=$1" )

... but that also checks if the file exists and gives me also error 404. Is there any chance to create such a rewrite-rule? Finally my url's should look like this:

http://www.domain.tld/myfolder1/index.htm, http://www.domain.tld/myfolder2/index.htm where myfolder1 and myfolder2 indicates the pages.

Thanks in advance!