ASP.NET issue with domains outside of route directory
Posted on 2010-01-07
I have several domains registered to use on some webspace I have with 1and1 hosting.
The whole webspace has a route directory and the rest of the domains held in folders under this.
Deploying the first site to it's own subdirectory (which I have registered as the destination in the 1and1 control panel), I came up with an issue with the web.config folder which I was told needs to be in the root of the webspace and not the site subfolder alone. Doing this I now have an issue with the root path for for my files including MasterPageFile="~/MasterPage.master" in my site.
I am looking for a solution across all subdomains where each can be managed with there own web.config file and that each hosted and registered subdirectory is recognised as the root for that site.