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.


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

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