In normal situation we would point a domain e.g. mydomain.com to a server and with this we can create application on IIS and have all working well (Url.Content(), Html.ActionLink(), Html.BeginForm() etc produce correct URL).

I am working in an environment where on the test environment we have something like mydomain.com/test pointing to a server. As a result, if I have an application with:

Physical path: C:\inetpub\wwwroot\demo Virtual path: /demo

then the URL to access it will be http://mydomain.com/test/demo

Unfortunately, all URL and Html helpers will create relative links without the "test" part which makes it broken links. What's the best approach to tackle this? Thank you.

link|improve this question
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.