Creating Subdomains Programmatically

前端 未结 3 994
你的背包
你的背包 2021-02-02 02:05

I am looking for a solution to create subdomains programmatically in ASP.NET, ASP.NET MVC and PHP. Specifically, a user profile page should resolve for both: www.domain.co

3条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-02 02:40

    You could try:

    AppDomain subDomain = AppDomain.CreateDomain("ProfileUserDomain");
    

    Although you may have to configure your DNS to allow request from your code. Dynamic DNS services could be your answer.

提交回复
热议问题