7 Tested Ways to Fix err_too_many_redirects!

The err_too_many_redirects error is one that might occur while loading a site. It is most common with WordPress sites, which can block users from viewing essential website content. This issue poses a problem for site owners, as it may prevent potential traffic and revenue generation. This error occurs when the request for a stable connection gets stuck in an infinite loop. Instead of the user's request being processed by the web server and displaying the site in the user's browser, a loop is created. As a result, the user encounters this error on their screen. In this blog, we will discuss the aspects of err_too_many_redirects, its root causes, and effective ways to resolve this error.

What is the err_too_many_redirects?

When you enter a URL into the address bar of a browser, it is called a client's request. This request goes to the web server, which connects with the DNS to fetch the correct IP address. After obtaining the IP address, the web server connects to the site for you and displays the desired web content on your screen. However, when err_too_many_redirects occurs, this process gets stuck in a loop. The web server is unable to connect the request and instead bounces the request back and forth. This happens because it cannot find the URL of the WordPress site or any other site in question. Ultimately, the loop keeps occurring repeatedly, leading to the redirection error. The downside of this error is that it does not fix itself. You cannot leave it to resolve over time like other issues. Furthermore, ignoring this problem can be detrimental to site owners, leading to decreased website traffic, reduced revenue generation, and missed conversions.

What are the Reasons Behind err_too_many_redirects?

The err_too_many_redirects error may occur for various reasons. Here are some potential causes to help you identify and address the redirection error:

● Invalid web address configuration - If the website has incorrect web address syntax in its configuration or a mismatch between the domain name and the IP address, the error may occur.

● Outdated cookies and cache - While browser cookies and cache can be useful for personalization, if corrupted, they could lead to multiple errors.

● Corrupted plugins and themes - Similar to outdated cookies, corrupted themes and plugins can cause numerous errors.

● Invalid server settings - Misconfigurations in the .htaccess file or SSL certificate could also create an infinite loop.

● Issues with third-party services - Integrations with your site, especially WordPress, could lead to the redirection error.

How Does err_too_many_redirects Appear on Different Browsers?

The error may present itself under different names depending on the browser you are using. However, the core issue and solutions are similar. We will discuss how this error appears on various browsers so you can identify if this is the error you're encountering:

Google Chrome

In addition to the error name, you'll also receive a warning message that states, "This page isn't working. example.com redirected you too many times." The name of the error will be ERR_TOO_MANY_REDIRECTS.

Mozilla Firefox

The redirection error on Mozilla Firefox is not explicitly named. Instead, a warning message appears: "The page isn't redirecting properly. Firefox has detected that the server is redirecting the request for this address in a way that will never complete."

Microsoft Edge

The name of the error is the same as on Google Chrome. However, the warning message differs: "This page isn't working right now. example.com redirected you too many times."

Safari

Similar to Mozilla Firefox, the redirection error's name is not clearly visible in Safari. However, the message will inform you of the error: "Safari can't open the page – Too many redirects occurred trying to open "example.com." This might occur if you open a page that is redirected to open another page which is then redirected to open the original page."

How to Fix the err_too_many_redirects?

The error may be causing confusion on your end but there are a few fixes that you can try to mitigate it. We will be discussing the solutions primarily applicable to Google Chrome. Here are a few of them.

1. Delete Browser Data of a Certain Site

There are two ways to go through with this, you can either delete all cookies and cache from your browser or you can remove browser data of a specific site. This is because sometimes you may want to keep a cache of a certain sign. Maybe your card information is saved on your favorite e-commerce site or your login credentials are saved for a site you visit every day. In such cases, it is best to remove the cache of a certain site. We will discuss both methods here.

Method 1: Delete All Browser Data

  1. Open Google Chrome and click on the three dots in the upper right corner.

  1. Go to Settings.

    image002

  1. Now head to Privacy and security.

    image003

  1. Click on Clear browsing data.

    image004

  1. In the pop-up window, check all the boxes. You can select the time duration of the cache you want to delete to only delete a specific website’s saved version.

    image005

  1. Confirm by clicking on Clear data.

    image006

Method 2: Delete Browser Data of a Specific Site

  1. Go to Settings.

    image002

  1. Scroll down to find Privacy and security. Click on it.

    image007

  1. Go to Cookies and other site data.

    image008

  1. Under See all site data and permissions, you can add the site that is showing the redirection error.

    image009

2. Clear WordPress Cache

Just like any other cache, WordPress also stores the cache for personalization of user experience. Similar to the browser cache, it can lead to errors like the redirection error. You can remove the cache from WordPress either from the browser or use popular plugins to do the work for you. Some of the plugins are Cache Enabler, W3 Total Cache, Super Cache, and even WP Fastest Cache. If you do not have these plugins, follow this installation process.
  1. Log in to your WordPress dashboard with your credentials.
  2. Head to Plugins.
  3. Click on Add New.
  4. Search for the desired plugin and click on Install Now.
  5. Activate it for it to start working.
The next time you want it to delete the cache, simply click on the plugin. It will take you through the next steps to remove WordPress cache.

3. Define the Nature of the Redirect Loop

With redirection loops, you might know which is the request that is repeating itself. There are five different types of HTTP status codes, 1xx, 2xx, 3xx, 4xx, and 5xx, where the first digit defines the category of these status codes. In order to mitigate the error, you must first out which is the request that is stuck in an infinite loop. To determine the nature of the loop, you can try out multiple online tools. If you use Google Chrome and are a site owner, you can use a downloadable extension that allows you to analyze your site. Redirect Path is part of the Chrome extensions. You can check that out or make use of other online tools like RankMath, Search Engine Reports, and more.

4. Fix Your HTTPS Settings

The basic configuration of the site may be invalid. If the requests cannot find the right commands, the connections won’t be put through. This usually happens if you have recently shifted to an HTTPS site. There may be a bunch of other reasons as to why this could happen but here are a few fixes that you can try out.

Check if there is a Valid SSL Certificate

When you make a shift from a WordPress site to an HTTPS site, the most common mistake that users make is missing out on the SSL certificate installation. This may also happen if you have an invalid SSL certificate. Luckily, you can check out the SSL configuration settings through various online tools. A popular one is Qualys SSL Labs. It is free to use and can help you determine the installed certificates on your site. There is more than one certificate often required for proper SSL configuration. Once you are on the tool, put in the domain name or hostname and see the configuration yourself. On the other hand, if you have missed out on the step to install an SSL certificate, you can do so with any web hosting panel. In contrast, you can also ask your hosting provider to help you out with a quick installation.

Avoid Using Third-Party Plugins for SSL

People prefer using third-party plugins for HTTP and HTTPS requests. However, these plugins can also cause redirection errors and process HTTPS requests, causing an infinite loop to occur. It may save you time but it is not the best solution. Instead, you can try replacing URLs yourself. If you are still confused, keep reading. You will know how to replace links further in this blog.

Verify Redirects of HTTP to HTTPS

Another thing that you can do is redirect the HTTP to HTTPS requests by configuring the core files in your web servers. There are two popular web servers that are part of everyone’s internet experience. It is either Apache or Nginx. If you are using Nginx, you need to find the configuration file and then add the following code there. server { listen 80; server_name domain.com www.domain.com; return 301 https://domain.com$request_uri; } However, if you are using Apache, then you must find the .htaccess file. It can be done through a web hosting panel. Simply go there and add a few lines of code there. First, rename the .htacess file to .htaccess_disabled and then add the code. RewriteEngine On RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

5. Disable the Content Delivery Network

WordPress site users often use a content delivery network to make their sites work faster. Since WordPress allows these integrations, the process is not faulty. However, these third-party services can often lead to many errors like the redirection error. The Content delivery networks have an association with SSL services. If they have set it as Flexible, the requests are not encrypted when they are sent. This causes the redirection error to occur and makes the server stuck in a loop of a single request. This would only be an issue if you have an SSL certificate installed. Plus, if the site is set for the conversion of HTTP to HTTPS traffic, then this problem could occur as well. To check if the content delivery network is the culprit, you will first have to disable it. If the error is mitigated, then this is the root cause behind the redirection error. All you will need to do is change the SSL setting from Flexible to either Full or Strict.

6. Configure the Site’s URL Settings

You will need to check if your site’s URL settings are properly configured. Otherwise, you will need to replace it manually using a File Manager. There are many methods available to replace the URL. We will discuss the three main methods here.

Method 1: Modifying the URL Through File Manager

  1. Go to the File Manager and find the public_html folder.
  2. Once there, find the wp-config.php file.
  3. Right-click on the file to Edit it.
  4. Insert the code there and replace your web address with this example web address.

    image010

  1. Save the changes in the file and check to see if the error is gone.

Method 2: Modifying the URL Through the Database Settings

  1. Head to the wp-config.php file to find the name of your WordPress database.
  2. Next, go to phpMyAdmin from the Database section.
  3. Click on Enter phpMyAdmin for the specific site.
  4. Go to the SQL tab and enter the following there. Make sure that you replace the oldurl with your old web address and the newurl with the new web address.

    image011

  1. Now click on Go to run the command.
  2. Head to the wp-options. Now click on option_value of siteurl and home to see if the error is gone.

Method 3: Modifying the URL Through Root User Privileges

  1. Head to the WordPress dashboard and locate Settings.
  2. Go to the General Settings.
  3. Verify the WordPress Address (URL) and Site Address (URL) on the page.
  4. If they are correct, leave them be. If you need to make the changes, remember to save it.
  5. Mitigate the Corrupted Plugins
Sometimes a faulty plugin can be the cause of errors like the redirection error. Moreover, the plugins are used by site owners for many reasons. Some of them include redirecting requests. When these requests collide with the requests of the server, the redirection error becomes a common issue. There are two ways to mitigate the corrupted plugins, either by deactivating them one by one through WordPress or by manually disabling them. Here are both of these methods.

Method 1: Disabling Plugins from WordPress

  1. Deactivate all the plugins that you have installed.
  2. Activate one plugin and see if the error is removed.
  3. If it is not, reactivate the plugin and move on to the next installed plugin.
  4. Repeat this process until you can see that the error is mitigated.
  5. If you are still unable to remove the error, the plugins are not the problem.

Method 2: Disabling Plugins Through File Manager

  1. Activate your File Manager. We are using FileZilla but you can use any file manager.
  2. Go to Remote Site.
  3. Head to wp_content and find the Plugins folder.
  4. Rename the folder as plugins_disabled.
  5. Check if the error is removed. If it is, then the plugins could be behind the cause of the redirection error.
  6. Rename the plugins folder back to its original name. Head inside the folder and disable the plugin one by one to find the culprit.

Conclusion

In summary, dealing with the redirection error can be quite frustrating. Often, this issue arises from outdated cache or plugins, but in some cases, configuration problems might be the root cause. Regardless, there are simple solutions available to help you quickly resolve the error and restore access to your desired content.
.com Domain
$5.96/yr
Free 3 months Starter Hosting with every purchase of .COM domain Search Now