I want to redirect from http to https://www, I tried the following rule, but unfortunately failed.
<rule name="http to https and www" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTPS}" pattern="^OFF$" />
</conditions>
<action type="Redirect" url="https://www.example.com/{R:1}" redirectType="Temporary" />
</rule>
Can someone tell me where is the problem?