title: Rewriting with lighttpd - how to remove file extensions
body: <p>I would like to use lighttpd's mod_rewrite to allow requests without a specific file extension. For instance, I would like the following mappings to automatically work:</p>
  
  <ul>
  <li>Requesting for "/index" would serve "/index.php".</li>
  <li>"/dir/file" => "/dir/file.php"</li>
  <li>"/dir/file?args" => /dir/file.php?args"</li>
  </ul>
  
  <p>Can this be easily done with a single rewrite rule for a given extension (e.g. ".php")?</p>