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

后端 未结 5 1942
暗喜
暗喜 2020-12-05 22:13

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.<

5条回答
  •  再見小時候
    2020-12-05 22:49

    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.

提交回复
热议问题