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