【发布时间】:2017-06-16 13:34:56
【问题描述】:
我有一个运行 https 的网站。现在有些程序员需要一个没有 https 的子目录。
这就是我现在的 web.config 中的内容:
<rule name="HTTP Redirect to HTTPS" enabled="true" stopProcessing="true">
<match url="(.*)" ignoreCase="false" />
<conditions>
<add input="{HTTPS}" pattern="off" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}/{R:1}" appendQueryString="true" redirectType="Permanent" />
</rule>
我们需要从这个 https 重定向中排除文件夹“wp-content\rest”。
希望有人能帮我解决这个问题。
【问题讨论】: