How to redirect http to https in Linux CP

1) Go to file manager and go to the root of your site in Cpanel -> File Manager. 
2) In file manager -> Setting,  click on it and select SHOW HIDDEN FILES
3) In the site root, create .htaccess if it doesn’t already exist.
4) Enter the following to the .htaccess file and save
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
That's all