There are many methods to redirect http to https in windows but simple step is you need to create web.config file in your website file directory and enter below code in web.config file.

 

<configuration>
<system.webServer>
<rewrite>
 <rules>
 <rule name="HTTP to HTTPS redirect" stopProcessing="true"> 
 <match url="(.*)"></match> 
 <conditions> 
 <add input="{HTTPS}" pattern="off" ignoreCase="true"></add>
 </conditions> 
 <action type="Redirect" redirectType="Permanent" url="https://{HTTP_HOST}/{R:1}"></action>
</rule> 
 </rules>
</rewrite>
</system.webServer>
</configuration>


Hope this will help you. If you have any query related to this post so write to us [email protected]