繁体   English   中英

如何使用 Z02A3A357710CC2A5DDFFB74ED012FB59Z 重写例如从 https://www.contoso.com 重定向到另一台服务器?

[英]How can I redirect with Url rewrite e.g. from https://www.contoso.com to another server?

How can I redirect with url rewrite eg from https://www.contoso.com to another server eg to https://www.testpage.com

您可以使用 iis url rewrite 进行重定向,并使用以下规则:

<rule name="test">
  <match url="^(.*)$" />
    <conditions>
     <add input="{HTTP_HOST}" pattern="^www.contoso.com$" />
    </conditions>
  <action type="Redirect" url="https://www.testpage.com/{R:1}" />
</rule>

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM