0
我有这个网站“localhost”。我希望所有页面都应该有https,除了“localhost/order.aspx?r = 15”。问题在于它将所有页面重定向到HTTPS,包括“localhost/order.aspx?r = 15”。我也曾尝试模式类似 “^ /本地主机/ order.aspx $”HTTPS否定不起作用
<rule name="Force HTTPS" stopProcessing="true">
<match url="(.*)" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false">
<add input="{HTTPS}" pattern="off" ignoreCase="true" />
<add input="{REQUEST_URI}" pattern="(order.*)" ignoreCase="true" negate="true" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}/{R:1}" appendQueryString="true" redirectType="Permanent" />
</rule>