Note that there are some explanatory texts on larger screens.

plurals
  1. POCan subdomains be managed programmatically in an ASP.Net application?
    text
    copied!<p>I have an application to be written in ASP.Net 3.5 that needs to manage subdomains for a different website. The managing website and the controlled website are hosted on different Windows servers, but both run IIS 6.0.</p> <p>The management website needs to provide a UI that can add or delete subdomains on the controlled site such that requests to those subdomains (i.e., mysubdomain.controlledsite.com and thatothersubdomain.controlledsite.com) navigate to different sections of the controlled sites web application (or, if necessary to set all of this up, to different web applications, which then also have to be created or deleted programmatically).</p> <p>Where do I get started with this? Is this even possible? I've seen on some other SO questions (<a href="https://stackoverflow.com/questions/278668/is-it-possible-to-make-an-asp-net-mvc-route-based-on-a-subdomain/541495#541495">Is it possible to make an ASP.Net MVC route based on a subdomain?</a>) something about routes, but I don't know if that fits my situation or not (I'm not using MVC). I can modify the code on both the management website and the controlled website, so if there is programming to be done to make this work on either end, I can do that.</p> <p>To be specific, if the code stays the way it is on the controlled site (I can change if necessary), I need to receive requests like <a href="http://xxxx.mysite.com/" rel="nofollow noreferrer">http://xxxx.mysite.com/</a> and map that to <a href="http://www.mysite.com/Home/xxxx/" rel="nofollow noreferrer">http://www.mysite.com/Home/xxxx/</a> while keeping the URL that the client sees as the former.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload