Is it possible to make an ASP.NET MVC route based on a subdomain?

Posted by Dan Esparza on Stack Overflow See other posts from Stack Overflow or by Dan Esparza
Published on 2008-11-10T18:04:23Z Indexed on 2010/04/27 18:23 UTC
Read the original article Hit count: 387

Filed under:
|
|
|

Is it possible to have an ASP.NET MVC route that uses subdomain information to determine its route? For example:

  • user1.domain.com goes to one place
  • user2.domain.com goes to another?

Or, can I make it so both of these go to the same controller/action with a username parameter?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about mvc