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 is setup with https/ssl for this to work. You can follow this guide to get a free SSL certificate for your domain.
- With .htaccess rewrite rules:
- You need to create or edit the file .htaccess located in your public_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 .htaccess located in your public_html directory. Add the following lines to 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 "Services" button:
- Click on the green "Active" button behind the service you like to change:
- 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 and click the "Change" button:
- All done.
- Log in to the client area with your details. If you have forgotten the password use the "Reset Password" link.
Do not hesitate to contact us if you have any questions.