How could one go about forcing Sitecore to handle any file requests, instead of getting a 404 from the IIS. The reason being, that we want to be able to apply the URL Rewrite Module (http://github.com/ParTech/Url-Rewriter) to file requests aswell.
Example: User requests : http://sitecore.domain/randomfolder/file.pdf (which dosent exists)
But instead of getting the IIS "HTTP Error 404.0 - Not Found via StaticFile", we want Sitecore to pick up the request, and apply any rewrite rules if available, else use the Sitecore notfound page.
I've tried adding different handlers to system.webserver without success, aswell as directly modifying Handler Mappings on the IIS settings.