To perform htaccess redirect to HTTPS, you need to install SSL certificate. After successful installation of SSL, the first step involves editing of .htaccess file. You can do it via FTP or cPanel File Manager. The second step involves htaccess redirecting to HTTPS in Apache or NGINX.

Insert this code to the .htaccess file and force all web traffic to use HTTPS. 

RewriteEngine On 

RewriteCond %{SERVER_PORT} 80 

RewriteRule ^(.*)$ https:///$1 [R,L]

Note: if you can’t find .htaccess file in the Public_html File, Create a FIle & Insert the above code.