title: Mapping specific folder to HttpHandler in web.config
body: <p>Is it possible to map all file extensions in a folder to a specific HttpHandler (assuming that their file extensions are mapped to aspnet_isapi.dll in IIS) ?</p>
  
  <p>I've got the FLV extension mapped to ASP.NET in IIS, and have a folder named <em>Static</em> in my web application with the following files:</p>
  
  <ul>
  <li>Static/Index.htm</li>
  <li>Static/MyFile.flv</li>
  </ul>
  
  <p>The index file is a basic html page using the <a href="http://www.longtailvideo.com/players/jw-flv-player/" rel="noreferrer">JW FLV Media Player</a> to play the FLV.</p>
  
  <p>In Web.Config, under the HttpHanders section, the following works (FLV is loaded and plays successfully):</p>
  
  <pre><code>&lt;add verb="*" path="MyFile.flv" type="MyApp.PassthroughFileHandler, MyApp"/&gt;
  </code></pre>
  
  <p>But this doesn't (video cannot be loaded):</p>
  
  <pre><code>&lt;add verb="*" path="Static/*" type="MyApp.PassthroughFileHandler, MyApp"/&gt;
  </code></pre>
  
  <p>I've tried various combinations, without much luck.</p>
  
  <p>Ideally, I'd like to be able to have all FLV's in the Static folder use the PassthroughFileHandler, rather than have to specify each filename individually in web.config.</p>