How do I redirect my website to https?

This article shows you how to force your website to use the SSL certificate and https.

Note: Only do this if you are confident you know what you are doing as it will break your website if incorrect. We are happy to do this for you, just contact us!

Standard https redirect

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. If you are using WordPress then click here.

The rewrite rule should be added under <system.webServer>. If you already have a <rewrite> tag then just add the rule section under it in the rules section.

<?xml version="1.0" encoding="UTF-8"?>
              <rule name="Force HTTPS" stopProcessing="true">
              <match url="(.*)" />
               <conditions logicalGrouping="MatchAll" trackAllCaptures="false">
                   <add input="{HTTPS}" pattern="OFF" ignoreCase="true" />
                 <action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="Permanent" />

WordPress https redirect

You can do this in WordPress by updating the Home and Site Url in your wp-admin area. There is a specific article on how to do this How to Set Your WordPress Site to use HTTPS.

Return to Category