Username: epiz_27868068
Website/domain: peezzied.ga with info and images subdomain
ERR_TOO_MANY_REDIRECTS on browser
I opened my website, then I suddenly got this.
I know this is a very common problem, and I saw a lot of this problem on InfinityFree forums. I don’t have much time to read those and I don’t understand it. It would take a while to fix this problem without knowing how does this problem works alongside troubleshooting. I hope somebody helps me
More info (just-in-case someone needs these):
I use Cloudflare
with Always Use HTTPS on
.htaccess file
ErrorDocument 400 https://peezzied.ga/error.html
ErrorDocument 401 https://peezzied.ga/error.html
ErrorDocument 403 https://peezzied.ga/error.html
ErrorDocument 404 https://peezzied.ga/error.html
ErrorDocument 503 https://peezzied.ga/error.html
RewriteEngine on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URL} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.html -f
RewriteRule ^(.*)$ $1.html [NC,L]
DNS Records
;; A Records
images.peezzied.ga. 1 IN A 185.27.134.225
info.peezzied.ga. 1 IN A 185.27.134.225
peezzied.ga. 1 IN A 185.27.134.225
www.peezzied.ga. 1 IN A 185.27.134.225
;; CNAME Records
_acme-challenge.peezzied.ga. 1 IN CNAME vfb4pnihyhoxtqtlvm1f.acme.infinityfree.net .
;; MX Records
info.peezzied.ga. 1 IN MX 0 mx.byetcluster.com .
peezzied.ga. 1 IN MX 10 mx1.improvmx.com .
peezzied.ga. 1 IN MX 20 mx2.improvmx.com .
Nameservers: mark.ns.cloudflare.com , tani.ns.cloudflare.com
I also purge cache my website several times on CF
2 Likes
KangJL
March 23, 2021, 5:46am
2
You better read…
WordPress is a great and very popular website building tool, and Cloudflare is a great way to get HTTPS on your website for free. Thanks to Cloudflare’s Flexible SSL system, you don’t even need to manage SSL certificates to use it! However, getting...
Make sure your Cloudflare settings are clean¶
If you’ve just enabled Cloudflare, all the Cloudflare settings should be standard, which is good.
If you’ve already tinkered with the Cloudflare settings before trying to get HTTPS to work, here are some settings to verify:
In the SSL/TLS → Overview tab, Encryption Mode is set to “Flexible”.
In the SSL/TLS → Edge Certificates tab, the setting “Always Use HTTPS” is set to Off.
In the SSL/TLS → Edge Certificates tab, the setting “Automatic HTTPS Rewrites” is set to Off.
1 Like
KangJL
March 23, 2021, 6:59am
3
You can refer to this for more info…
Username (e.g. epiz_XXX) or Website URL
Error Message
[image]
Other Information
(other information and details relevant to your question)
Hello,
KangJL
Thank you for your response.
I’ve been using CF for a week. I never occurred this problem until now, then I got this.
I don’t use wordpress
Maybe this line is a culprit:
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URL} [L,R=301]
Try to remove it and leave “Always Use HTTPS” intact, as Cloudflare redirects to HTTPS your website for you.
3 Likes
Thank You.
My problem was fixed.
I changed
Peezzied:
ErrorDocument 400 https://peezzied.ga/error.html
ErrorDocument 401 https://peezzied.ga/error.html
ErrorDocument 403 https://peezzied.ga/error.html
ErrorDocument 404 https://peezzied.ga/error.html
ErrorDocument 503 https://peezzied.ga/error.html
RewriteEngine on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URL} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.html -f
RewriteRule ^(.*)$ $1.html [NC,L]
to
Peezzied:
ErrorDocument 400 http://peezzied.ga/error.html
ErrorDocument 401 http://peezzied.ga/error.html
ErrorDocument 403 http://peezzied.ga/error.html
ErrorDocument 404 /error.html
ErrorDocument 503 http://peezzied.ga/error.html
RewriteEngine on
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule (.*) https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTPS} on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.html -f
RewriteRule ^(.*)$ $1.html [NC,L]
But my www.peezzied.ga is different from peezzied.ga, but they are literally the same thing.
For instance, when you enter www.peezzied.ga/peezzied.png it is still there, even though I removed it.
I also turned this off
so first
you need to pick one - https:// in htaccess in cloudflare
2nd - set cloudflare ssl to Full
3rd - purge cache (cloudflare and on ur pc)
Admin
March 23, 2021, 12:56pm
9
This rule doesn’t work when using Flexible SSL. Try this one instead:
RewriteCond %{HTTP:X-Forwarded-Proto} =http
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
4 Likes
I want to stay with Flexible SSL. So I will do this
Admin:
This rule doesn’t work when using Flexible SSL. Try this one instead:
RewriteCond %{HTTP:X-Forwarded-Proto} =http
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
instead of this?
Admin
March 24, 2021, 9:34am
11
The .htaccess snippet I shared works both with Flexible SSL and Full SSL. Using Full SSL is more secure but takes a bit more effort to set up.
Admin
Split this topic
March 25, 2021, 6:21pm
13
4 posts were split to a new topic: Too many redirects
system
Closed
April 9, 2021, 6:21pm
14
This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.