How to redirect website HTTP to HTTPS using .htaccess

Note: Backup your website in case of something wrong. Login into your cPanelUse the file manager in cPanel to edit .htaccess file.Now to put this code in the .htaccess file RewriteEngine On RewriteCond %{HTTPS}...