I want to move my web site into https. I did it successfully.
But I want also: all URLs of web page (e.g. http://www.dvbi.ru, http://dvbi.ru, www.dvbi.ru) redirected to https://www.dvbi.ru automatically.
I corrected the file web.config (see below). The redirect is successful.
However, do not work forms - Logins, Register. Nothing shows up in these forms.
How to fix it ?
<system.webServer>
<rewrite>
<rules>
<rule name="asd">
<conditions>
<add input="{HTTP_X_Forwarded_Proto}" pattern="^$"/>
</conditions>
<match url="^(.*)$" />
<action type="Redirect" url="https://{HTTP_HOST}/{R:1}"></action>
</rule>
</rules>
</rewrite>
</system.webServer>