Site redirected too many times, This page isn't working

Username (e.g. epiz_XXX) or Website URL

https://invite.cf/ - epiz_29100109

Error Message

This page isn’t working

invite.cf redirected you too many times.

ERR_TOO_MANY_REDIRECTS

Other Information

I enabled cloudflare on the site and enable under dos mode, then i checked it last night and it showed that error but i disabled the under dos mode but the error is still there and i’m not sure what happened since the site had been working fine?

Also must mention that all sub directories, subfiles and password locked files have the same error.

Can you please share your .htaccess file?
Thanks

deny from (not giving someones ip address out)
ErrorDocument 400 http://invite.cf/400.html
ErrorDocument 401 http://invite.cf/401.html
ErrorDocument 403 http://invite.cf/403.html
ErrorDocument 404 http://invite.cf/404.html
ErrorDocument 503 http://invite.cf/503.html

BEGIN YOURLS

RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^.*$ /yourls-loader.php [L] # END YOURLS RewriteEngine On RewriteCond %{HTTP:X-Forwarded-Proto} =http RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Try removing this part of the file and see if it works.

2 Likes

I use yourls, link shortener and it stores to a sql database - I do think these files are crucial for the php scripts to function.

Hang on! - I removed a part of it –
RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} =http
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
I think it redirected it to http then to https then to http - and so on i can visit the site and it functions fine! I’ll test the scripts now!
–Edit–
Yep it functions fine, cloudflare blocks the ip of the user who shortened the link (stored incase people abuse the site or post malicious content and use the site to shorten) but i dont mind much, the site works. Thank you very much @Greenreader9 :heart:

4 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.