ERR_TOO_MANY_REDIRECTS

#1
Friends, has anyone fixed this error, ERR_TOO_MANY_REDIRECTS ???
this is my code in rewrite: (I'm using openlitespeed)

RewriteEngine On

RewriteCond %{SERVER_PORT} 80
RewriteRule ^/(.*)$ https://upfotos.com [R,L]

RewriteCond %{HTTP_HOST} ^www\.upfotos\.com
RewriteRule (.*) https://upfotos.com/$1 [R=301,L]

RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
 

serpent_driver

Well-Known Member
#2
This is all you need

Code:
RewriteCond %{SERVER_PORT}:%{HTTP_HOST} !^443:www\.
RewriteRule ^(.*)$ https://www.upfotos.com/$1 [R=301,L]
Don't forget to restart OLS. OLS must be restarted after .htaccess has been changed.
 
Top