How to force your website to use HTTPS

HTTPS makes sure all information sent over your website is encrypted. Encryption is very useful and prevents any unauthorized access to your client's or customer's sensitive information for eg. credit card details, name, email, etc...
It is highly recommended to use HTTPS on all your web pages. To force HTTPS on all the web pages of your site, follow the steps below.

1. Make sure you have either purchased an SSL Certificate or get a free one from Let's Encrypt. If you purchased a hosting plan from us, we provide you with a free domain validated SSL certificate through Cpanel. Avoid using self-signed certificates because most browsers do not trust them and will show a warning to all users visiting your website.

You can purchase more advanced SSL from here.

2. Use File Manager to navigate to the root of where the files of your website are stored, it is usually public_html for main domains.
At the root folder, look for the file named .htaccess. Right-click on that file and select edit, add the code below, and select save.

RewriteEngine On 
RewriteCond %{HTTPS} off 
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Was this answer helpful?