I've added this code to run on remote machine to redirect all http requests to https
<rewrite>
<rules>
<rule name="Redirect to https">
<match url="(.*)" />
<conditions>
<add input="{HTTPS}" pattern="Off" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}/{R:1}" />
</rule>
</rules>
</rewrite>
I've run this api with this code on local machine and get This site can’t provide a secure connection
that's ok.
But when I'm commented this code and run api again it's anyway redirects to https. How could I return back to http?