Force SSL

To force SSL on your website created a .htaccess file within your website and add the following code:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]

If your website already has a .htaccess file, paste the code above at the end making sure not to repeat ‘RewriteEngine On’.

You must have an active SSL certificate, otherwise your website will show a not secure warning to visitors.

If you are using CloudFlare, please use the built in Always HTTPS tool within CloudFlare instead.