我花了三天时间在 Stackoverflow 和 google 上进行挖掘。我没有得到任何确切的步骤,如何完成它......我在 stackoverflow 上阅读了所有这些问题,很多人问了同样的问题,但没有得到执行此任务的确切步骤。
ASP.NET 中的子域重写? https://stackoverflow.com/questions/1322151/subdomain-rewriting-in-asp-net#
https://serverfault.com/questions/58050/generating-content-based-on-subdomain https://serverfault.com/questions/58050/generating-content-based-on-subdomain
动态创建子域 https://stackoverflow.com/questions/2190309/creating-subdomains-on-the-fly
通过重写的 ASP.NET 虚拟子域 https://stackoverflow.com/questions/13126438/asp-net-virtual-subdomain-via-rewrite?rq=1
如何向 ASP.NET 网站添加子域? https://stackoverflow.com/questions/4943581/how-to-add-a-subdomain-to-an-asp-net-website?lq=1
如何允许用户在我的 MVC 网站上创建自己的子域? https://stackoverflow.com/questions/12994128/how-to-allow-users-to-create-their-own-subdomains-on-my-mvc-website?answertab=votes#tab-top
子目录到子域重定向的 web.config 规则 https://stackoverflow.com/questions/9044880/web-config-rule-for-sub-directory-to-sub-domain-redirection
使用 Web.Config 将目录重定向到子域 https://stackoverflow.com/questions/4202045/use-web-config-to-redirect-a-directory-to-a-subdomain
ASP.Net 中子域的 URL 重写 https://stackoverflow.com/questions/11661605/url-rewrite-for-subdomains-in-asp-net?rq=1
现在这是我正在尝试做的:当用户在我的网站上注册时,此时创建一个用户名如下的子域
.domain.com 如 abc.domain.com、xyz.domain.com
并且它必须指向domain.com/Users//index.asp
这是一个很好的例子http://ytmnd.com/ http://ytmnd.com/
我使用带有 IIS7 的 Windows 主机,并且使用 asp.net。
我在 DNS 中设置了通配符条目,当用户点击 .domain.com 时,它会指向服务器的默认 Plesk 网页;
我不知道它应该像那样工作,或者它应该指向我的主domain.com
请提供我完成此任务的步骤
谢谢