0
我有这样的重写规则中:IIS HTTP到HTTPS时,Web应用程序是网站
<rewrite>
<rules>
<rule name="Redirect to http" enabled="true" patternSyntax="Wildcard" stopProcessing="true">
<match url="*" negate="false" />
<conditions logicalGrouping="MatchAny">
<add input="{HTTPS}" pattern="off" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" redirectType="Found" />
</rule>
</rules>
</rewrite>
我想rediret所有HTTP到HTTPS TRAFIC,但事情是我的web应用程序是不是在根文件夹,所以它是这样的:
http:\\my-site.com\MyWebApp\some-parameters-here
和重定向后它去:
https:\\my-site.com\some-parameters-here
...而不是
https:\\my-site.com\MyWebApp\some-parameters-here
这怎么重定向可以固定而不URL硬作弄那一部分?
肯定。您可以删除该行。这部分我们的配置。我们有几个没有证书的网站。 – SouXin
谢谢,这对我有用。 – ShP