How do I force an SSL certificate ?

Once you have issued a SSL certificate in cPanel under 'Lets Encrypt', your website will not automatically always use SSL/HTTPS, it will default to using HTTP protocal only.

To force your website to use SSL/HTTPS, add the following to a file called ".htaccess" in your website's root directory:

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

If you can not find the ".htaccess file, turn on hidden files within the file manager by clicking on the cog icon at the top right hand side.
  • 19 Users Found This Useful
這篇文章有幫助嗎?

相關文章

Access SSH on Your Website

To access SSH on your website with our web hosting plans all you have to do is use the IP address...

What nameservers should I use?

If you would like to use our web hosting you MUST change your nameservers to the ones...