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"?>
              <rule name="Redirect to https">
              <match url="(.*)" />
                   <add input="{SERVER_PORT}" pattern="443" negate="true" />
                 <action type="Redirect" url="{R:1}" />

Return to Category