views:

553

answers:

1

How can I programatically create a subdomain in asp.net mvc, and what ways are there for creating a subdomain?

ex: user.mysite.com or mysite.user.com

+2  A: 

Take a look at this post and see if it helps. http://stackoverflow.com/questions/278668/is-it-possible-to-make-an-asp-net-mvc-route-based-on-a-subdomain/541495#541495

You need to write a custom route in order to achieve this.

CalebHC