sola

Registered
Aug 26, 2019
1
0
1
Abuja
cPanel Access Level
Root Administrator
Hello,
I have successfully installed a TLS certificate on a site. The site is now accessible over http and https. I have attempted forcing https, 'the site then shows too many redirects'. I used the cPanel feature, and even htaccess, but same error. Anyone with a possible reason why this keeps happening? Thanks.
 

quietFinn

Well-Known Member
Feb 4, 2006
2,109
580
493
Finland
cPanel Access Level
Root Administrator
Try adding this code to the .htaccess file:

Code:
RewriteEngine On



RewriteCond %{HTTPS} off



RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]