如何为Asp.net应用程序动态创建子域?
我正在克隆 1 和1 我的业务网站,它为每个客户创建子域。注册后,它会根据客户 ID 为每个用户创建子域 URL,例如“http://s301488216。初始网站.co.uk/”。我不知道如何动态创建子域。或者我需要任何特殊的文件夹结构吗?
I am making clone of 1 and 1 my business site where it creates sub domain for every customer. After registration it creates sub domain URL for every user according to the customer id like "http://s301488216.initial-website.co.uk/". And i have no idea that how to create subdomain dynamically. Or do i need any special folder structure for this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
子域名与asp.net无关;这是一个 DNS 技巧。因此,您需要与管理您域的 DNS 服务器的人员一起解决这个问题。
Sub domains have nothing to do with asp.net; this is a DNS trick. So that is something you need to work out with whoever is managing the DNS servers for your domain.