[英]Can we create subdomain URLs without actually creating a subdomain in asp.net?
Is this possible to mimic URLs in Asp.net without actually creating a sub domain. 可以在不实际创建子域的情况下模仿Asp.net中的URL。 Is this possible using URLRewriter .
使用URLRewriter可以做到这一点吗? I've to use URLRewriter only.
我只需要使用URLRewriter。 I'm using asp.net 4.0 and IIS 6. So i won't user IIS 7's URL rewriting extensions..
我正在使用asp.net 4.0和IIS6。因此,我不会使用IIS 7的URL重写扩展名。
For example : URL : example.com?value=somecode 例如:URL: example.com?value = somecode
and rewrite as : somecode.example.com 并重写为: somecode.example.com
I just gone through this link on code project. 我只是在代码项目上浏览了此链接。 I just don't know how to implement in project.
我只是不知道如何在项目中实施。
Any help is appreciated..!!! 任何帮助表示赞赏.. !!!
EDIT : 编辑:
As per Juann Strauss's answer . 根据Juann Strauss的回答 。 I'm updating my question now.
我正在更新我的问题。 Is it possible using IIS 7 .
是否可以使用IIS 7 。 without actually creating a subdomain.?
而不实际创建子域。
Nope. 不。 Your server won't be listening for requests to somecode.example.com .
您的服务器不会监听对somecode.example.com的请求。 If you want to do something like that, you're going to have to do scripting on the IIS level rather than on a site level.
如果要执行类似的操作,则必须在IIS级别而不是站点级别执行脚本。 There's also DHCP configuration to think of.
还有要考虑的DHCP配置。
what you CAN do is route requests for example.com?value=somecode to example.com/somecode 你可以做的是example.com?value=somecode到example.com/somecode请求路由
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.