Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create subdomain with username using C# and asp.net?

Tags:

When a user registers with my site, they will get a url like this "http://username.mysite.com" to access their page/folder. How this is possible using C# and asp.net mvc.

Any help is appreciated.

like image 470
Ravi Avatar asked Sep 17 '09 07:09

Ravi


1 Answers

Rather than have the username as a subdomain how about having it as part of the URL path. Would be a lot easier for you to implement.

www.mysite.com/users/ravi
www.mysite.com/ravi

Then you could tailor your View page dependent on the username.

like image 119
David Avatar answered Oct 11 '22 12:10

David