How to force HTTP redirect to HTTPS in cPanel or via FTP. In this video we are trying to show you how you can force http:// url's redirect automatically to https:// from your cPanel.
The main or primary domain is easily redirectable but when its Add on domain then you have to use a small piece of code in your .htaccess file which is listed below.
Make sure to remove RewriteEngine on if it already exists.
[code]
RewriteEngine on
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
[/code]
Visit: https://www.webfulhost.com/