To ensure your website always loads securely, you can force HTTPS in your cPanel.
-
Log in to cPanel and open the File Manager.
-
Locate and edit the .htaccess file in the public_html directory.
-
Add the following lines to the top of the file:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] -
Save the file and close it.
After that, any visitor using http:// will automatically be redirected to https://.
If you are using WordPress, you can also enable HTTPS from the general settings or by using a plugin such as Really Simple SSL.