title: Mixing Classic ASP with MVC - Issues with same paths
body: <p>We are slowly trying to migrate away from our classic asp pages to mvc views but I have come across an issue which I am struggling to figure out!</p>
  
  <p>We want to keep the same url structure so I had created a controller/action to point to the same url, however this is being ignored and the asp file is always taking priority.</p>
  
  <p>Example:</p>
  
  <p>I have the folder structure: <strong>adults\policies\index.asp</strong>
  and an MVC controller called <strong>Adults</strong> with an action called <strong>Policies</strong></p>
  
  <p>When I browse to the url: <strong>..co.uk\adults\policies</strong></p>
  
  <p>I expect the browser to go to my new controller action method but it is always going to the classic asp file location instead. </p>
  
  <p>If I try to rename index.asp to something else I'll get a permissions error (so it is still attempting to use the classic asp path rather than the MVC controller action all the time). </p>
  
  <p>I've spent hours trying to play around with routing but I can't seem to get it working. It's important that we keep the same url structure so I can't give my controller / action an alternative name to solve it. </p>
  
  <p>Can anyone please help?</p>
  
  <p>Thanks!</p>
  
  <p>Edit:</p>
  
  <p>I've sort of been able to get this to work using a rewrite module with some regex to then append the word "/index" on the end which then makes it go to the mvc view. </p>
  
  <p>I don't know what pattern to use to ignore urls with an extension on the end though i.e. .asp / .jpeg etc. because the url is turning into /adults/policies/test.asp/index</p>
  
  <p>So far I have included this pattern:</p>
  
  <p>/?([^:/\s]+)((/\w+)<em>/)([\w-.]+[^#?\s]+)(.</em>)?(#[\w-]+)?$</p>
  
  <p>Taken from here: <a href="http://www.regextester.com/20" rel="nofollow">http://www.regextester.com/20</a></p>
  
  <p>Can anyone help so that this rewrite module won't kick in when there is a url with a .* on the end?</p>