How to Solve WordPress ERR_TOO_MANY_REDIRECTS Errors

ERR_TOO_MANY_REDIRECTS. This is a common error in WordPress installations. This error is divided into two types, one for installation and one for normal use. The installation problem is relatively easy to solve. In the installation process, enter the domain name /wp-admin/install.php, that is, directly access install.php. This way you can bypass the error and complete the installation.

Solve WordPress ERR_TOO_MANY_REDIRECTS Errors

In the second case, a circular redirect occurs under normal use conditions.

There are many different causes for this one.

Type 1: Caused by Https, remove HTTPS temporarily. Then reconfigure HTTPS in the correct way and configure Https access in Config.php.

Type 2: Indeed too many redirects, for example, you set Https. then the domain without WWW redirected to www, but you wrote another redirect in the htaccess file, or you set a third redirect in the server backend. Or maybe you set a redirect on the control panel of the domain. In short, it’s really caused by too many redirects. Here’s where you need to remove those redirects.

Type 3: Caused by repeated installation of various themes. Here you need to find the wp-include folder, open the template-loader.php file and find the following code (usually in the first few rows, divided into two lines)

if ( defined(‘WP_USE_THEMES’) && WP_USE_THEMES );

do_action(‘template_redirect’);

Comment out these two lines of code. Then you can resume normal access.

Type 4: WordPress circular redirect

This one is usually caused by WordPress installation error.

Find the functions.php file under your current theme folder and add the following line of code at the end: (note that it must be under the current theme folder)

READ ALSO:   How to Quickly Fix “error establishing a database connection” in WordPress

remove_filter(‘template_redirect’, ‘redirect_canonical’);

Type 5. Too many frontend redirects, but the backend is still accessible

And you don’t know the code. So here’s where you need to install the plugin.

Permalink Fix & Disable Canonical Redirects Pack

Note that you have to download it in the WordPress Marketplace. Install it and you’re done.

What is Microsite? What is The Difference Between Microsite And Landing Page?
Best Shopify SEO Plugins That Can Boost Your Sale Immediately