title: Lighttpd url.rewrite-if-not-file in subdir
body: <p>I need some help with an url.rewrite-if-not-file.</p>
  
  <p>I am using a Zend Framework based application so most of my requests are to be treated by 
  /index.php and so far everything is good.</p>
  
  <p>However, I have some sub-applications that'll have to work without that redirect.</p>
  
  <p>For example, I need all requests in the dir /events to lead to that directoriy-index file.</p>
  
  <pre><code>"/events/" =&gt; "/events/index.php",
  "/events/?foo=bar" =&gt; "/events/index.php?foo=bar",
  "/events/create/" =&gt; "/events/create/index.php"
  </code></pre>
  
  <p>And so on</p>
  
  <p>What I have so far is</p>
  
  <pre><code>url.rewrite-if-not-file = (
     "^/events/(.*)/$" =&gt; "/events/$1/index.php"
  )
  </code></pre>
  
  <p>But when it comes to capturing the GET variables and place them right, I am lost.</p>
  
  <p>I have tried</p>
  
  <pre><code>"^/events/(.*)\??(.*)$" =&gt; "/events/$1/index.php?$2"
  </code></pre>
  
  <p>But that doesn't work.</p>
  
  <p>Thankful for any help.</p>