Я пытаюсь перенаправить трафик http на https в IIS, но он продолжает выдавать ошибку. Я думаю, это потому, что два правила перезаписи URL конфликтуют друг с другом.
<rewrite>
<rules>
<!-- reroute /sales-app to root of sub-domain -->
<rule name="AngularJS Routes" stopProcessing="true">
<match url=".*" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
<add input="{REQUEST_URI}" pattern="^/(api)" negate="true" />
</conditions>
<action type="Rewrite" url="/" />
</rule>
<!-- https redirect -->
<rule name="HTTPS force" enabled="true" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTPS}" pattern="^OFF$" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" redirectType="Permanent" />
</rule>
</rules>
</rewrite>
Эти два правила мешают друг другу?
Как я могу добиться перенаправления https с применением правила одностраничного приложения?