Redirect IIS 10.0从X域重定向或重写到具有子目录的X域
请你帮忙。我检查了所有主题,但没有找到解决方案 我必须实施下一步: 如果客户使用: test.site.com 它应该重定向到 test.site.com/rdweb 包括rdweb中的所有子文件夹,可以有aspx文件、HTML等 我一直在尝试:Redirect IIS 10.0从X域重定向或重写到具有子目录的X域,redirect,iis,url-rewriting,Redirect,Iis,Url Rewriting,请你帮忙。我检查了所有主题,但没有找到解决方案 我必须实施下一步: 如果客户使用: test.site.com 它应该重定向到 test.site.com/rdweb 包括rdweb中的所有子文件夹,可以有aspx文件、HTML等 我一直在尝试: <rule name="RDWeb" patternSyntax="ECMAScript" stopProcessing="true"> <match url=".*" negate="fal
<rule name="RDWeb" patternSyntax="ECMAScript" stopProcessing="true">
<match url=".*" negate="false" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false">
<add input="{HTTP_HOST}" pattern="^test.site.com$" />
</conditions>
<action type="Redirect" url="https://test.site.com/rdweb" />
</rule>
我非常感谢你的帮助。谢谢大家! 您的网站获得太多重定向,因为仍然符合您的reidirect规则。 请将条件模式添加到{URL}以限制重定向仅发生在或
这只是因为你没有给这个规则一个结束的条件,所以它会一直重定向到自己。请添加另一个条件,这样当您在URL中看到rdweb时,就不再重定向了。我不知道如何说谢谢!它起作用了!要健康强壮@AntonHibchenko我很高兴规则能帮助你。如果您能接受它作为答案,我们将不胜感激
ERR_TOO_MANY_REDIRECTS
<rule name="RDWeb" patternSyntax="ECMAScript" stopProcessing="true">
<match url=".*" negate="false" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false">
<add input="{HTTP_HOST}" pattern="^test.site.com$" />
<add input="{URL}" pattern="^(/)?$" />
</conditions>
<action type="Redirect" url="https://test.site.com/rdweb" />
</rule>