How to force https on your site

Once you have installed SSL and woudl like to autoredirect your site to https, please follow the steps below:

  1. Login to cPanel and navigate to File Manager >> public_html
  2. On the to right, click Settings button and select Show Hidden Files then Save
  3. This should display files starting with (.) dot. Look for .htaccess file. If not present on your top left click File to create  a new file. Name the file .htaccess
  4. Copy the following code snippet to the .htaccess file and save.

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

Your site should now redirect well.

Leave A Comment?