I am installing an ASP.NET MVC application in a subdirectory in my WinHost site. The user would access the app with: www.mysite.com/mysubdir. The app's start page loads ok, but after that, I find that the MVC routing only works if I code URL's with a prefix of /mysubdir/. For example in an <a> tag, or in a jQuery Ajax call, I need to use: /mysubdir/Home/NextPage. If I just use /Home/NextPage, it returns file not found. Interestingly, @Html.ActionLink("Some text", "NextPage") renders with the /mysubdir/ prefix as above. It seems as if it's starting from the root of the site, and navigating from there. Note: In the root of the site, in Web.config, I have wrapped the <system.web> section inside a <location> tag with this syntax: <location path="." inheritInChildApplications="false"> ... </location> My question: I am wondering if there is some setting in Web.config or global.asax or elsewhere that I should be using so that the routing is directed to the subdirectory without having to embed the subdirectory name in the URL's.