You no longer need to manually enter a code in .htaccess file to force HTTPS redirection. cPanel taken care that for you; now you can directly force HTTPS redirection in few steps. Let’s learn how!
1. Log in to cPanel using Username & Password. i.e; (https://yourdomain.com:2083 or https://yourdomain.com/cpanel)
2. Navigate to Domains → Domains.
3. Toggle the option Force HTTPS Redirect to On.
4. Congratulations! You have successfully forced HTTPS redirection via cPanel.
Conclusion
No more need to follow the the lengthy method for the HTTP to HTTPS forced redirection. Toggle option will be only available for the domain names which has SSL installed already.