We need to be able to run two versions of one ASP.net web application on the same intranet server and port number, but with one mapped to / and the other mapped to /experimental
A combination of ARR and rewrite rules will solve this nicely. Here are the steps to follow:
http:*:80:
. Name it "Default Web Site". Point its physical path to "%SystemDrive%\inetpub\DefaultWebSite"Create a web.config file for the "Default" website, and write your routing rules there:
You may have to fiddle somewhat with your rewrite rules, you can experiment using the URL Rewrite Module applet on IIS, and read more about it here: http://learn.iis.net/page.aspx/500/testing-rewrite-rule-patterns/ For further help be sure and browse Ruslan Yakushev's blog: http://ruslany.net/
This will give you three completely separate websites, accessibly through a single facade on port 80 (though of course you can hit each website directly on port 81 and 82 if you need to: http://localhost:81/default.aspx
, for example).