How can I fix the "ERR_TOO_MANY_REDIRECTS"?
-
Hi Sandeep once again, I've been tooning up the server and everything goes well, I don't know what I mess up but I came out twith the error of too many redirects, I've try that client side sugested fixes (flush dns, clear cache) and all that, but it does not work, I know it was something I did in the server but I don't know where to look for a fix.
the odd thing is that the wordpress site loads as expected, but when I try to access the backend of wordpress the error comes out.
Master SanDeep please show me the way...!!
Thanks in advance.
-
@jesu-villawolf
https://www.mysterydata.com/apache-http-to-https-htaccess-redirect-on-cwp-centos-webpanel/remove any http to https redirect before adding below rule.
add this to htaccess :
SetEnvIf X-Forwarded-Proto "https" HTTPS=on RewriteEngine on RewriteCond %{HTTPS} !=on RewriteCond %{HTTP:X-Forwarded-Proto} !https [NC] RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
-
@sandeep Sorry Sandeep, I try that one with no luck, I also tryed some other alternatives to the redirect code with no luck, I really don't know what to do...!!
Is there a way CWP is overriding what I try to do to the .htaccess file in the local site with the redirect code?
-
@jesu-villawolf probably your script have some module plugins which is redirecting. Disable all plugins and check.
-
@sandeep It's the first account I was goint to migrate, there is nothing installed, what I did was Clear all cache from browser, Fresh install, everything goes OK, but when I try o access WP-ADMIN.PHP to get into wordpress backend the ERR_TOO_MANY_REDIRECTS comes out, not in the frontend.
Maybe I modify something before from the main isntall at CWP, something that is forcing apache to do this.
UPDATE
I wrote the above message lastnight, IT WAS NOT WORKING, this morning I clear everything once again on a fresh install, GUESS WHAT, is working.SOLVE for now.