Windows 2012 R2 with ARR 3
I have multiple farms configured with rewrite rules (Exchange, Lync, and Sharepoint). Now I would like to know if it possible to create a single rule that will redirect HTTP to HTTPS whatever the farm that is targeted.
I've tried many different things but none is working. Here's the rule:
<rule name="ARR_HTTP_to_HTTPS" patternSyntax="Wildcard" stopProcessing="true">
<match url="(.*)" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false">
<add input="{HTTPS}" pattern="^OFF$" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}/{R:1}" />
</rule>
Thanks