How do I redirect my website to https?

All websites have a web.config at the root of your folder. You can add a configuration setting in this web.config file to force a redirect to https.

The rewrite rule should be added under <system.webServer> for example.

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
           <rules>
              <rule name="Redirect to https">
              <match url="(.*)" />
               <conditions>
                   <add input="{SERVER_PORT}" pattern="443" negate="true" />
               </conditions>
                 <action type="Redirect" url="https://www.yourdomainname.com/{R:1}" />
              </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>