How to fix TOO_MANY_REDIRECTS error

You may experience a TOO_MANY_REDIRECTS error. It typically occurs when the redirect is not configured properly when a plugin or module activates SEO or a lovely URL, which causes problems with redirects.

We will look into how to fix this problem

Plugin Issue

If you have any installed redirect plugins or modules, try disabling them to see if your page loads properly.

HTTPS Redirect

If the plugin was not the issue, the redirect in the .htaccess file may not be configured properly. This may cause an error in redirects.

Edit the .htaccess file, where the HTTPS rule is, and replace it with the following lines:

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]

This should solve the error. Reload your webpage to see if it is loading fine.

Was this article helpful?

Related Articles

Leave A Comment?