How to Redirect your Website to HTTPS

Back to search

Before continuing, please ensure that you have a valid/active SSL Certificate installed on your Hosting package.

There are two methods listed below to load your website as https://, which will load a secure padlock on your website URL.

Should you have a WordPress site, please refer to Method 1 and then Method 2. 

Method 1:

1. Login to cPanel
2. Select File Manager
3. Select Settings ensure that 'Show Hidden Files (dotfiles)' is ticked, if not please tick and Save.
4. Go to the website's public_html directory 
5. Edit the existing .htaccess file by right clicking on it or click + File and create an .htaccess file and then right click on it. 
6. Add the following text:

RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

7. Click Save Changes (top right)

Your website should now load as https:// be default. If you cannot see it, please clear out all browsers cache.

Method 2:

Should you have WordPress and have enabled the .htaccess rule (as per Method 1 above), you may still find that the secure padlock icon is still not displaying.

This is due to WordPress having a tendency to load all uploads such as images as http:// instead of https://.

WordPress does have Plugins that can resolve this issue (e.g. Really Simple SSL).

Also Read

Inserting fields into database tables with phpMyAdmin
This tutorial assumes you've already logged in to phpMyAdmin Now let's learn how to insert...
How to decide which script in Softaculous is right for you
As of April 2010, Softaculous contains 138 scripts and applications, so how do you choose the one...
How to view your website stats in cPanel
This demo assumes you've already logged in to cPanel Now let's learn how to view our website...
Uploading files using WinSCP
This tutorial assumes you already have WinSCP running on your computer, and are connected to a...