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

How to install Dotclear from Softaculous
This demonstration assumes you already have Softaculous open. 1 Click Dotclear from the menu....
Website Hosting - Glossary of Terms
The following is a glossary of popular words associated with web hosting. Address The unique...
How to create a POP email account in cPanel
This demo assumes you've already logged in to cPanel. Now let's create a new POP email account....
How to create custom error pages in cPanel
This demo assumes you've already logged in to cPanel Now let's learn how to create custom error...