I have a number of web applications within my website in IIS 7.5, in which my MVC2 web application will live.
WebSite
* Prod
* Test1
* Test2
I have firewall routing configured to redirect from http://test1.mywebsite.com/xxx
to http://my.actual.website/Test1
I've used Url.Content("~/Content/Site.css")
but the CSS is not getting loaded. Looking at the source for the web page the url is being rendered as <link href="/Test1/Content/Site.css" ...>
Is there anything I can do to fix this? Possibly using the IIS URL rewriter module, or adding more rules to my firewall.