Hello I have problem on redirecting the site to https when it comes to "www.site.com".
I made this
<rules>
<rule name="Redirect site.com to www" patternSyntax="Wildcard" stopProcessing="true">
<match url="*" />
<conditions>
<add input="{HTTP_HOST}" pattern="site.co" />
</conditions>
<action type="Redirect" url="https://www.site.co/{R:0}" />
</rule>
</rules>
In this sample when I try to access the site through "site.com" it redirect to " https://www.site.com " but when I access the site to www.site.com the https doesn't appear.