Redirect Loop Error When Redirecting http to https

Brian Wilber

Registered
Sep 28, 2015
1
0
1
USA
cPanel Access Level
Website Owner
I have installed an SSL certificate on my web domain and the https version of my site loads fine when I manually go to it.

In cPanel I went to the redirects section and tried to redirect all my http traffic to https. When I try to load the website now I get an infinite loop error. I have tried modifying the .htaccess file myself based on some different posts in these forums and nothing I seem to do works. Does anyone have any other suggestions?

Thanks.
 

Jcats

Well-Known Member
PartnerNOC
May 25, 2011
807
158
168
New Jersey
cPanel Access Level
DataCenter Provider
There is most likely a PHP redirect happening, are you using a CMS like WordPress?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
Hello :)

Are there any other custom Mod_Rewrite rules in the .htaccess file that could be conflicting with the redirect you configured?

Thank you.
 

cyberview

Registered
Oct 10, 2005
3
0
151
United Kingdom
redirect http to https

Code:
redirect http to https
.htaccess

RewriteEngine On

RewriteCond %{HTTPS} !on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
 
Last edited by a moderator: