0

I need to assign SubDomain to every user who will be registered to my site. Example: My Site Domain: www.example.com When a user registered for this, a subdomain eg.www.username.example.com assigned to the user.

I am not able to find any solution. I tried googling and found solutions but not working as my requirements.

Thanks for help me..

tereško
  • 57,247
  • 24
  • 95
  • 149
Umesh Sehta
  • 1,599
  • 9
  • 22
  • Sounds to me like you'll need a Powershell script of some sort to add a new binding to your existing website when a new user has been created. – Dan Lister Dec 10 '13 at 10:37
  • 1
    You don't have to and don't want to create a new subdomain for each user. Just use a wildcard DNS and inspect the `Host` header from code. Can you show _what_ you have Googled, what you found and why it didn't help you? What part specifically do you need help with? – CodeCaster Dec 10 '13 at 10:38
  • See [Is it possible to make an ASP.NET MVC route based on a subdomain?](http://stackoverflow.com/questions/278668/is-it-possible-to-make-an-asp-net-mvc-route-based-on-a-subdomain). – CodeCaster Dec 10 '13 at 10:41
  • @CodeCaster How we can add the Wildcard DNS, i am using IIS 6.0, there no option for DNS. – Umesh Sehta Dec 10 '13 at 10:46
  • 1
    http://stackoverflow.com/questions/458757/wildcard-subdomains-in-iis7-is-it-possible-to-make-them-like-it-is-in-apache – Mohit Kumar Dec 10 '13 at 10:52

0 Answers0