Help me, 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]
 
Top