Knowledgebase

SSL: Force traffic from http to https Print

  • 2

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.

  1. With .htaccess rewrite rules:
    1. 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]
    2. Save or upload the file and all traffic will now be forced to use https.
  2. From the client area:
    1. Log in to the client area with your details. If you have forgotten the password use the "Reset Password" link.
    2. Click on the link "All functions" behind the domain name you like to change the settings for:
    3. Scroll down on the page and click "Addon Domains":
    4.  Click on the "edit" button behind your domain name:
    5. Change the "Force SSL with https redirect" to be switched on:
    6. Click "Change" to save your settings.

Do not hesitate to contact us if you have any questions.


Was this answer helpful?

« Back