In ASP.NET 4.0 with IIS7, I created a HttpHandler and registered it in web.config
<add name="MyHandler" path="MyPath/*" verb="*" type="MyProject.MyHandler, MyHandler" />
Here, what I try to achieve is to handle all the file requests to http://my-server/MyPath/*, but with such settings the requests to http://my-server/SubFolder/MyPath/* will also be handled, not what I want.
Is the absolute path the only way I can use to guarantee first level folder match?
Any other better idea?
You can use location element for this