IIS7.5重写无法正常运行

时间:2018-10-11 06:24:17

标签: iis https url-rewriting

这没问题吗?

该网站有多个域, 但是只有一个需要SSL 就像http://www.exampl1.org

<rule name="http_to_https" enabled="true" stopProcessing="true">
<match url="(.*)"  />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false">
    <add input="{HTTP_HOST}" pattern="^example1\.org$" />
    <add input="{HTTPS}" pattern="^OFF$" />
</conditions>
 <action type="Redirect" url="https://www.example1.org" redirectType="Permanent" appendQueryString="false" />
</rule>

0 个答案:

没有答案