title: How to ignore all of a particular file extension in MVC routing
body: <p>How do I configure an IgnoreRoute to ignore all files with a certain extension, regardless of what directory they're in?</p>
  
  <p>If I do this, everything works and my Flash movie gets played:</p>
  
  <pre><code>routes.Ignore("community/123/plan/456/video/moviename.flv");
  </code></pre>
  
  <p>So the "123" and "456" sections are variable and can be any integer number. Obviously though, I don't want to do one of these for each movie NOR do I have a need to replace 123 and 456 with variable placeholders. This is only an example of one type of directory, there are Flash movies stored throughout the application so <strong>what I need is an IgnoreRoute value that will ignore files that have a .flv extension no matter where in the hierarchy they are</strong>.</p>
  
  <p>I've tried the following:</p>
  
  <pre><code>routes.IgnoreRoute("{file}.flv");
  routes.IgnoreRoute("(.*).flv(.*)"); // Yeah I know, I'm horrible at RegEx
  </code></pre>
  
  <p>The only thing I can get to work so far is specifically passing the full relative path to the FLV file. Any suggestions?</p>