I'm developing an ASP.NET MVC application on IIS7 and I need to rewrite requests to all files from a directory in my application and it's subdirectories to another directory. The files are images, stylesheets, classic webforms files and vanilla html documents.
What's the easiest way to achieve this? I've already tried installing the ManagedFusion's URL rewriter, but it just gives me an access denied error on all URLs since I installed it. I'm not even sure if it's compatible with ASP.NET MVC.
Thanks,
Adrian
Best Answer
Starting with IIS7, IIS ships with a module that can be used for rewriting URLs.
http://learn.iis.net/page.aspx/460/using-url-rewrite-module/