The following .htaccess codes below forces any HTTP request to HTTPS. For example, the code forces a request from http://example.com to load https://example.com. Please ensure you replace the domain name "example.com with your own domain name.
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.example.com/$1 [R,L]
NB: 1). Please read https://www.globalhosting247.com/knowledgebase/2012/How-to-Edit-htaccess-File-via-the-cPanel-Filemanager-.html to learn how to edit the .htaccess file.
2). Please also note that if .htaccess file already contains some default WordPress code or any other .htaccess code, enter the new htaccess code above or below that code. Never enter the .htaccess code inside of the comment tags that start and end with or similar of:
- # BEGIN WordPress
# END WordPress
Kindly submit a support ticket if incase you need further help on this.