Create subdomain dynamically in ASP.NET

拟墨画扇 提交于 2019-12-25 18:24:56

问题


I want to create a sub-domain dynamically using C#.

e.g., The domain name is www.example.com. How would I create a country sub domain dynamically based on region. For instance, I want to add India as the sub-domain using C# www.india.example.com.


回答1:


This is simples alternative to do this:

  • http://blog.maartenballiauw.be/post/2009/05/20/ASPNET-MVC-Domain-Routing.aspx
  • http://lukesampson.com/post/303245177/subdomains-for-a-single-application-with-asp-net-mvc


来源:https://stackoverflow.com/questions/12570187/create-subdomain-dynamically-in-asp-net

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!