Note that there are some explanatory texts on larger screens.

plurals
  1. POURL Routing across multiple subdomains
    primarykey
    data
    text
    <p>I find myself in a difficult situation. We're working on an ASP.NET MVC 2 application which is comprised of multiple sections. It is a design goal to have these sections span across several subdomains. Each subdomain will have its own controller.</p> <p>The challenge is that our hosting provider's control panel allows two forms of redirection for subdomains, and neither of them seem to fit the bill. The choices are:</p> <ul> <li><p>Redirecting to URL. Choice is given whether to redirect to an exact destination or a destination relative to the request URL.</p></li> <li><p>Redirecting to a specific folder in my hosting space. </p></li> </ul> <p>I'll try to illustrate the intended behaviour. Assuming the default route is <code>{controller}/{action}/{id}</code>, I'd like the URL <code>http://subdomain.welcome.com/a/b</code> be handled by the MVC Application like <code>http://welcome.com/subdomain/a/b</code>.</p> <p>The URL redirection could solve this problem, except for the fact that the user sees a URL change occur in the browser. We don't want the client to see the redirection occur.</p> <p>Redirecting to our MVC apps root folder doesn't work at all. The app doesn't pick up the request and a 4xx error gets passed back by IIS.</p> <p>edit:</p> <p>In the interest of finding an answer, I'll simplify this a bit. The "redirect to URL" doesn't do what I want so that leaves redirecting to a folder.</p> <p>If I'm redirecting a subdomain to the root folder of my MVC App and IIS wont pick up the requests, is this a limitation of IIS or my provider?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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