[英]IIS rewrite subfolder URL to subdomain content
I'm trying to load content hosted on a subdomain site as a subfolder on the same main domain - I've attempted a variety of IIS URL rewrites with no luck so far. 我正在尝试将托管在子域网站上的内容作为同一主域上的子文件夹加载 - 我尝试了各种IIS URL重写,目前还没有运气。 The goal is for a user to go to:
目标是让用户去:
domain.com/subdomain1
which displays 哪个显示
subdomain1.domain.com
but keeps the URL as 但保持URL为
domain.com/subdomain1
There are multiple subdomains which I need to do this with. 有多个子域我需要这样做。
I have the URL Rewrite module installed and have tried all many of rules. 我安装了URL Rewrite模块,并尝试了所有的规则。
Any help would be appreciated :-) 任何帮助,将不胜感激 :-)
A rewrite changes the path on the server only, if you want the URL to change you need a redirect. 重写仅更改服务器上的路径,如果您希望更改URL,则需要重定向。 You can change this on the rule.
您可以在规则上更改此设置。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.