ASP.NET - how to create subdomain dynamically

Asked By Reena Jain on 12-May-10 02:58 AM

hi...

If my website is hosted using IIS 7 at http://www.domain.com/

I want to make a subdomain for every user.
So, a user 'abc' signs up, and automatically my code creates
http://billgates.domain.com/

I have a dedicated server with me and i want to create it diynamically, I listen about the wildcard. How to use this.
I want complete code for this please, not a link
i have done all neccessary setting in iis7

thanks in advance...

Jinal Desai - LIVE replied to Reena Jain on 12-May-10 03:01 AM
Please do no post the same question again..

You have already posted this question
http://eggheadcafe.com/community/aspnet/17/10168923/how-to-create-subdomain-d.aspx


Hope you understand..
Anoop S replied to Reena Jain on 12-May-10 03:11 AM
You can create it by 2 ways,
1. with IIS Manager and create host headers
2. use an ISAPI filter such as ISAPI_REWRITE_LITE  to do this via regex matches and perform the redirects.