I am rewriting urls in my ASP.net application (not mvc) using a custom module. My page urls have no extension suffix – for instance:
http://www.mydomain.com/entity/123/entitytitle
so I therefore setup IIS to map * path to my ISAPI handler.
The problem is that because of this mapping all urls like *.png, *.jpg also mapped to the ISAPI Handler (not staticFileModule) which causes my IIS worker process do more work (and excessive cpu usage)
What is the solution in IIS 6.0? I want to map all extensions to ISAPI handler except some know static files like *.png, *.jpg …
Thanks in advance.
I could not find any correct answer for this. and finally because I am using IIS 6.0 the only remaining way for me was using virtual directories for my images or styles folder. so then the static content will be served separately!