Using HTTPS instead of HTTP means that communication between your browser and a website is encrypted using SSL (Secure Socket Layer). Even if your website does not handle sensitive data, it is advisable to make sure it loads securely over HTTPS. It is now becoming a requirement for many new browser features and, in addition, it can influence search engine rankings.
To make sure your website loads securely, you must make sure it starts with HTTPS instead of HTTP. This can be achieved in several ways. The most common ones are described below.
Use the Force HTTPS tool
1. Log in to cp.global-dns.com, go to Manage Hosting and select Manage on the package for which you want to force the use of HTTPS.
2. Select the SSL/TLS icon.
3. Select Enable Forced HTTPS. This will redirect website users to HTTPS. As long as the website has an SSL certificate and all content loads over HTTPS, it should be shown as secure.
Using an .htaccess file
Another way, which allows for more specific configuration, is to use a rule in the .htaccess file. If you do not have an .htaccess file, you can create one via FTP or the File Manager and then add the code:
RewriteEngine On
RewriteCond %{env:HTTPS} !on
RewriteRule ^(.*)$ https://www.example.com/$1 [R,L]
If you already have an .htaccess file, make sure you do not duplicate the line: RewriteEngine On
If after enabling forced HTTPS the website still appears as not secure, then you will need to make sure that:
1. You have an SSL certificate on the site.
2. You do not have mixed content.