If you buy hosting at Jayahost, SSL will automatically be active on the customer's hosting. but website visitors can still access our website using http:// . so that it is safer we can force visitors to redirect to https:// every time a visitor visits our website.

One way is to enter the following code into the .htaccess of our website:

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

How to setting Using Htaccess

  1. Login to cpanel
  2. Go to File Manager then go to the Public_html folder
  3. there is a .htaccess file that can be edited.

additional: if you don't find the file, it's probably hidden, for cpanel users to bring it back up by clicking "settings" on the right. then check "show hidden files"