How to Fix ERR_TOO_MANY_REDIRECTS Error in WordPress

If you have a WordPress website, you may encounter the error ERR_TOO_MANY_REDIRECTS sometime. This commonly happens when your website gets stuck in an infinite redirect loop that prevents your browser from contacting the correct web server and loading the desired web page content.

In this article, we will show several ways to resolve the error ERR_TOO_MANY_REDIRECTS. You will also learn what causes it and how it looks in different web browsers.

What is ERR_TOO_MANY_REDIRECTS?

The error ERR_TOO_MANY_REDIRECTS occurs when a browser cannot connect to the correct server for your website. The browser goes back and forth through multiple URLs and servers trying to locate your WordPress website. As a result, the website puts users into a redirect loop that never ends.

This redirect loop error occurs due to few reasons:

  • Misconfigured WordPress website address. It happens when your website points to the wrong domain or has a typo in the domain name or prefix www.
  • Broken browser cookies and stale cache. It is the most common cause and the easiest to fix.
  • Faulty WordPress plugin. It is due to a faulty, outdated or misconfigured plugin.
  • HTTPS misconfiguration. Occurs when SSL certificate or HTTPS redirect rules are misconfigured.
  • Incorrect server configuration. Occurs when the file .htaccess you have a bad variable.
  • Problems with third party services. For example, a misconfigured content delivery network (CDN).

Fortunately, there are several methods to fix the error ERR_TOO_MANY_REDIRECTS. We will cover each of them in this article below.

How does the ERR_TOO_MANY_REDIRECTS error look like in different browsers?

Each web browser has its way of indicating the error ERR_TOO_MANY_REDIRECTS to users who visit a website. Take a look at what various popular browsers display when you experience this problem.

Google Chrome

Google Chrome will display the redirect loop error as “This page doesn’t work. example.com redirected you too many times«. The browser will recommend a solution to resolve it, followed by the error message ERR_TOO_MANY_REDIRECTS which confirms the problem.

Microsoft Edge

Microsoft Edge will display this error as “This page is currently unavailable. example.com has redirected you many times”, followed by the error message ERR_TOO_MANY_REDIRECTS.

MozillaFirefox

The Mozilla Firefox error message reads: “The page is not redirecting correctly. Firefox has detected that the server is redirecting the request for this address in a way that will never complete«.

Safari

Safari will display the error as “Safari can’t open the page – Too many redirects occurred while trying to open “example.com”. This happens when when you open a page it redirects you to another one that, when opened, redirects you to another page.«

See also  How to start a business from scratch (in 9 steps)

Opera

Opera’s error message is similar to Chrome’s, which is “This page doesn’t work. example.com has redirected you too many times«, followed by the error tag ERR_TOO_MANY_REDIRECTS.

How to solve ERR_TOO_MANY_REDIRECTS

There are several ways to fix the error ERR_TOO_MANY_REDIRECTS. We recommend that you try each of them separately to find the cause of the redirect loop issue, but be sure to keep track of your steps so you can revert your changes if necessary.

With that said, here are the six steps to take in case of an error ERR_TOO_MANY_REDIRECTS in WordPress.

1. Clear browser data

Browser data sometimes stores corrupted cookies and stale cache, causing the error ERR_TOO_MANY_REDIRECTS. Therefore, before making changes to your , it is advisable to check if it is only your browser that is causing the error by clearing the data history.

Here are the steps you need to follow to clear your browser’s cache and cookies:

In Chromeclick the three small dots in the top right menu and select Setting. go to Privacy and security -> Clear browsing data. check the boxes Cookies and other site data and Cached images and filesand click Clear data.

In Mozillago to the top right menu button, select Settings. Choose Privacy & SecurityChoose Clean data in Cookies and site data. Make sure you check all the boxes and click Remove.

In Safarigo to Safari -> Clear History. Choose the option you want and then click Delete history.

In Microsoft Edgego to Settings -> Cookies and site permissions. Choose Manage and delete cookies and site data -> View all cookies and site data. Click the button delete all and then choose Erase.

2. Check URL settings

If clearing your browsing data doesn’t fix the issue, check if your WordPress URL settings are set correctly.

The redirect loop error usually occurs when webmasters accidentally point their WordPress site to the wrong domain when migrating from host or .

You can fix it through the WordPress admin panel or manually.

Check and change URL settings manually

When your website experiences the error ERR_TOO_MANY_REDIRECTS, you may not be able to get into the admin area of ​​your WordPress installation. In this case, you can change your URL settings with the help of the file wp-config.php through you file manager or of a like .

See also  How to fix the temporary directory missing error in WordPress?

In this example, we will show how to edit the file via File Manager:

  1. access your file manager under Records.
  2. In the public_html directory, place your file wp-config.phpright click and then click Edit.

  3. Add the following lines to the file. In this case, http://example.com is your domain name.define(‘WP_HOME’,’http://example.com’);
    define(‘WP_SITEURL’,’http://example.com’);
  4. After saving the changes, visit your website to see if changing the WordPress URLs fixed the error ERR_TOO_MANY_REDIRECTS.

Edit URL settings via database

You can also edit the URL settings through your WordPress database. The following tutorial will show you how to do it using phpMyAdmin.

  1. Find your WordPress database name via file wp-config.php.
  2. Log in to the hPanel and navigate to phpMyAdmin in Databases. Click the button Login to phpMyAdmin next to the database connected to your WordPress site.
  3. Access the tab SQL within the phpMyAdmin area.
  4. Enter the following SQL query, taking care to replace oldurl.com with the current WordPress address and newurl.com with the new site address:
    UPDATE wp_options SET option_value = replace(option_value, ‘oldurl.com’, ‘newurl.com’) WHERE option_name=”home” OR option_name=”siteurl”;UPDATE wp_posts SET guid = replace(guid, ‘oldurl.com’,’ newurl.com’);UPDATE wp_posts SET post_content = replace(post_content, ‘oldurl.com’, ‘newurl.com’);

    UPDATE wp_postmeta SET meta_value = replace(meta_value,’oldurl.com’,’ newurl.com’);

  5. click on Continue to run the query. open the table wp-options and check the option_value of siteurl Y home to see if the update process was successful.

Change URL settings through the Admin Control Panel

Another solution to change the URL settings is through your WordPress dashboard. Follow the steps below if you can login to the admin panel.

  1. go to Settings in your WordPress dashboard.
  2. On the page of General adjustmentscheck your WordPress Address (URL) and the Site address (URL).
  3. Make sure both URLs are correct. If you edited them, don’t forget to save the changes.

3. Clear WordPress cache

Your browser isn’t the only place prone to storing a corrupted cache. In some cases, the cache stored on your WordPress site can cause the error ERR_TOO_MANY_REDIRECTS. For , choose one of these two options.

1. Use the WP Fastest Cache plugin

is a caching plugin gratuitous for WordPress. The cache feature included in the free version is more than enough to help you clear the cache stored on the website.

This is how to clear website cache using WP Fastest Cache plugin:

  1. Login to your WordPress dashboard. go to Plugins -> Add New.
  2. Search WP FastestCache using the search bar and click Install Now -> Activate to configure the plugin. Check out our guide to learn more about .
  3. Look for the option WP FastestCache in the side menu.
  4. in the tab clear cachechoose the option that best suits your needs.
  5. If the process is successful, a confirmation message will appear at the top of the page.

2. Use the WP Rocket plugin

is a premium caching plugin for WordPress. In addition to being compatible with popular themes, plugins, and hosting providers, WP Rocket also comes with features that comply with web performance best practices. Their prices range between 49 and the $249 a year.

To clear the website cache using the WP Rocket plugin, follow these steps:

  1. After purchasing the plugin license, download it to your computer. Upload the plugin file to WordPress and install it manually.
  2. Access the WP Rocket control panel.
  3. Choose clear cache bass quick actions to remove all cached files.

4. Disable broken plugins

Another reason that could cause the ERR_TOO_MANY_REDIRECTS error is a damaged or outdated plugin.

In some cases, certain WordPress plugins that implement redirects may conflict with your server’s redirects.

To check if this is the source of the problem, disable all your plugins by manually editing the folder.

You can do it through File Manager from your hosting provider or an FTP client. In this case, we will use the latter.

  1. First, set up your FileZilla client. If you need more information on how to do it, we offer you a .
  2. Once you’ve logged in, select remote site. go to wp_content and locate the folder plugin.
  3. Right click on the folder and rename it as plugins_disabled. Try to access your website. If the error message no longer appears, then one or more plugins are corrupted or out of date.
  4. Rename the folder back to plugins and follow the same process with each plugin folder to check which one is causing the error. We recommend that you start with the one you installed most recently.

5. Disable the .htaccess file

There is a possibility that a faulty variable or incompatible redirect rules in your file .htaccess are causing your website to enter a redirect loop. If that is…

Loading Facebook Comments ...
Loading Disqus Comments ...