我在我的web.config中有以下代码:

<rewrite>
    <rules>
        <rule name="Redirect HTTP to HTTPS" stopProcessing="true">
            <match url="(.*)" />
            <conditions>
                <add input="{HTTPS}" pattern="^OFF$" />
            </conditions>
            <action type="Redirect" url="https://{HTTP_HOST}/{R:1}" 
                    redirectType="SeeOther" />
        </rule>
    </rules>
</rewrite>
.

我想重定向一切,除了 http://www.mysite.com/manual https。

如何修改上述以允许此?

有帮助吗?

解决方案

如果在条件标记中添加以下代码,则可以是OK

<add input="{REQUEST_URI}" negate="true" pattern="^/manual/*" ignoreCase="true" />
.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top