How to redirect HTTP to HTTPS?

How to redirect HTTP to HTTPS?


1. Go to your public_html folder in the File Manager.

 

2. Create a new file with name ".htaccess" if it is already not there. Please make sure to include dot at the start of the filename.

 

3. Copy and paste the below three lines in the file and save it.

RewriteEngine On
RewriteCond %{HTTPS}  !=on
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]

 

4. Now try to access your website and if you still see any issue, open a support ticket.