Q:

Redirect all traffic

I am not an ASP developer so pretty lost here.  Need to set up a rule to redirect ANY traffic coming to the server with .asp in the file name to another url.  This is what I have in my web.config file. 
<? xml version="1.0" encoding="UTF-8"? >
<configuration>
  <system.webServer>
    <rewrite>
     <rules>
      <rule name="Migrate to PHP">
       <match url="^([_0-9a-z-]+).asp" />
       <action type="Redirect" redirectType="Permanent" url="/site/404" />
      </rule>
     </rules>
    </rewrite>
  </system.webServer>
</configuration>

This works for /foo.asp, but does not work for /bar/foo.asp.  How can I get a wildcard in there? 

A:

You could just remove the carat. 
<match url="([_0-9a-z-]+).asp" />

