How to make your HTML site Secure

In Cpanel scroll down to Security and click om SSL/TLS Status... Now click on Auto SSL.

Note that this can take a few minutes after which all red locks should be Green meaning that SSL is enabled on the site and emails.

Now go to File manager and then into the public_html folder.  Under Settings Click on "Show Hidden Files" and edit the .htaccess file. If there is no .htaccess file click on the +File button and create a .htaccess file. 

Add the following code:

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

 

NOTE: This should work for all HTML websites. If you are using a CMS like WordPress SSL should be activated in the admin backend.

  • 40 Users Found This Useful
Was this answer helpful?

Related Articles

CPanel Access

This article will explain how to access your CPanel and create mailboxes quickly. 1. Log into...