我有一个SSL网站,我想将所有呼叫重定向到另一个SSL网站,包括POST数据。 经过几次尝试,均未成功。有什么建议 这就是我到目前为止所拥有的。
<rule name="Redirect url" enabled="true" stopProcessing="true">
<match url="(.*)" ignoreCase="true" />
<action type="Redirect" url="https://localhost" appendQueryString="false" redirectType="Permanent" />
</rule>
答案 0 :(得分:0)
如果您还需要在目标URL的末尾附加请求URI,请修改规则。
<rule name="Redirect url" enabled="true" stopProcessing="true">
<match url="(.*)" ignoreCase="true" />
<action type="Redirect" url="https://localhost/{R:1}" appendQueryString="false" redirectType="Permanent" />
</rule>