In this guide we will show you two ways to force traffic from http to https (secure connection).
Before you do this change, make sure your domain name is setup with https/ssl for this to work. You can follow this guide to get a free SSL certificate for your domain name.
- With
.htaccess
rewrite rules:
- You need to create or edit the file
.htaccess
located in yourpublic_html
directory. Add the following lines to the file:# Force https with rewrite
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
- Save or upload the file and all traffic will now be forced to use https.
- You need to create or edit the file
- From the client area:
- Log in to the client area with your details. If you have forgotten the password use the "Reset Password" link.
- Click on the link "All functions" behind the domain name you like to change the settings for:
- Scroll down on the page and click "Addon Domains":
- Click on the "edit" button behind your domain name:
- Change the "Force SSL with https redirect" to be switched on:
- Click "Change" to save your settings.
Do not hesitate to contact us if you have any questions.