Force redirect your website to HTTPS using .htaccess

There are many ways to redirect your website from HTTP to HTTPS, but I found this as the easiest and best way to do this. Login to cpanel and edit the file .htaccess Add the following code You site now will be automatically redirected to Https.