Category: WordPress

Let’s fix too many wordpress redirects; no customer/reader wants to be redirected to a different page when he wants to visit a particular page. A redirect is better than a 404 message. Still, too many redirect errors can spoil your page ranks or cause a decrease in traffic, especially a never-ending redirection loop that will frustrate users to no end.

There could be numerous reasons for excessive redirects on your WordPress site.

  1. Misconfigured WordPress settings
  2. Incorrect server settings for HTTP/S
  3. Conflicting WordPress plugin settings
  4. Poorly configured SSL/TLS certificate
  5. Problems with third-party services
  6. Hosting multiple websites on a single server
  7. Faulty website/domain migration

These are only a few reasons, and there could be more. In this blog, we will discuss ways to fix this error, infamously known as – ERR_TOO_MANY_REDIRECTS.

No doubt, the steps we have explained here are easy to follow, still, it is advised to do only if you are an expert. Or else, you can take the help of a WordPress Development Service provider or get it done by an expert.


1. Delete Browser Data

Your browser data could be a storehouse of obsolete cache and corrupted cookies. Check if your browser is the culprit before you jump to conclusions and start making significant changes to your WordPress website. Delete your browsing history.

For Chrome and Firefox

  1. Press Control+Shift+Delete (Windows) or CMD+SHIFT+Delete (MacOS).
  2. Select the time duration for which you want to clear the browsing history.
  3. Now, click on OK / Clear Data.

If you want to clear cache and cookies without opening any browser, please follow the steps below.

    1. Press the Windows key (on the extreme left-hand side of your desktop/laptop) + R key.
    2. When the Run dialog box pops up, type %appdata%
    3. Next, proceed to local and then Google. Now, go to Chrome and delete the user data folder.

go to Chrome and delete the user data folder

  1. Repeat the same for other browsers.

For Mozilla FireFox:

Clearing all browsing history on mozilla firefox

For Chrome:

Clearing browsing data on chrome

2. Check and edit the URL settings

Cleared your browsing history, but the problem persists? No worries, check if your WordPress URL settings have been properly configured.

The ERR_TOO_MANY_REDIRECTS error occurs primarily because erroneously create their WordPress site point at the wrong domain while changing/transferring your domain name or during the host migration process.

There are two ways of checking your URL settings.

  1. Manual process
  2. Accessing the WordPress admin dashboard

1. Manual Method

When you face the redirect loop error while using your WordPress website, accessing the admin area would be practically impossible. In these circumstances, you need to change your URL settings by editing the wp-config.php file. You can do it using File Manager or an FTP client.

  1. Using an FTP client, connect to your WordPress website folder/pathWP’s
  2. Now, proceed to – /wp-content/themes/your-theme-folder/
  3. The next step is to find the functions.php file and edit it using a text editor like Notepad.
  4. Now, add the following code at the bottom.

A. update_option( 'siteurl', '' );
B. update_option( 'home', '' );

Update code in functions.php file

Note: is for illustration purposes only, and you need to replace it with your WordPress website’s URL. Once you complete this step, you are advised to save the changes and check if changing the URL resolved the redirect loop error.

Editing the URL settings through the Database

The following steps guide how to edit the URL settings using phpMyAdmin.

  1. Locate your WordPress database name through the wp-config.php file.
  2. Login to the CPanel and move to phpMyAdmin under Databases. Click the Enter phpMyAdmin button, which is located next to your Database. (associated with your WordPress website)
  3. Now, click on the SQL tab under the phpMyAdmin area.
  4. Enter the below MySQL query while replacing with the existing WordPress addresses and with the new site address.

Adding mysql query

UPDATE wp_options SET option_value = replace(option_value, '', '') WHERE option_name = 'home' OR option_name = 'siteurl';UPDATE wp_posts SET guid = replace(guid, '','');UPDATE wp_posts SET post_content = replace(post_content, '', '');

UPDATE wp_postmeta SET meta_value = replace(meta_value,’’,’’);

  1. The next step would be to click on GO which will execute the query. Now, open the wp-options table to examine the option_value of site URL and home to ensure that the update process has been completed successfully.

In case your website file is located in the default root folder (/public_html/), you should use the default ( URL. If it happens to be in a sub-folder like (/wp/), you are advised to replace the URL with a new URL. For example –

2. Steps to change the URL settings using the administrator dashboard

This is another alternative way to change the URL settings. If you can log in to the administrator dashboard, please follow the steps below.

  1. Access your admin dashboard and find settings on the bottom left-hand corner.
  2. When you click on settings, it will lead you to the General Settings page. Pay close attention to your WordPress address (URL) and site address (URL).
  3. Both URLs should be configured correctly. Save all the changes if you do make any edits.

Click in settings button on WordPress dashboard

3. Delete WordPress Cache

Apart from the browser, the corrupted cache may be stored in the WordPress website as well, leading to redirect loop errors. You can use either of the two options below.

1. WP Fastest Cache Plugin

WP’s fastest cache plugin is a free WordPress cache plugin. It has a premium version too, but the free version is good enough to clear your website cache. Please find the steps below.

    1. Login to your WordPress dashboard and click on Plugins – Add New.
    2. Use the search bar to locate – WP’s fastest cache. Now click on Install Now – activate to start the process

WP Fastest cache plugin

    1. Look for the drop-down under settings – WP fastest cache

WP fastest cache options

  1. Find the delete cache tab and select the option that best suits your requirements.
  2. Upon successfully clearing the WordPress cache, you will notice a confirmation message on top of the page.

2. WP Rocket Plugin

WP premium is not a free tool. However, it is compatible with popular themes, plugins, and hosting providers. Apart from that, it also includes impressive features while following the best practices in web performance. It is available in three plans – single, plus, and infinite, priced at $49/year, $99/year, and $249/year. Follow the steps below to clear the website cache using this plugin.

  1. Purchase the license and then download it. Now, upload the plugin file to WordPress and install it manually.
  2. Now, proceed to the WP Rocket dashboard.
  3. Select the drop-down – Clear Cache under Quick Actions to get rid of all cache files.

4. Disable corrupt plugins

Corrupted/outdated plugins can also cause the ERR_TOO_MANY_REDIRECTS. Often, particular WordPress plugins that implement redirects may also conflict with your server redirects.

How do you know for sure whether outdated/corrupted plugins are causing the redirect error? Manually edit the folder and disable all the plugins. You can accomplish this task using your hosting provider’s File Manager or an FTP client.

disable corrupt plugins

  1. The first step would be to configure your FileZilla client.
  2. After logging in, choose the option called Remote site. Proceed to wp_content and find the plugins folder.
  3. Right-click on the folder and rename it to – plugins_disabled. Now, try accessing your website. Does the error message appear now? If yes, then one or more plugins are outdated/corrupted.
  4. Now, rename the folder to Plugins again. Repeat the same troubleshooting process for each plugin’s folder to understand which one is causing the error. We advise you to start with the one that was installed most recently.

5. Disable the .htaccess file

A faulty variable or a conflicting redirect rule in your .htaccess file may be responsible for causing the ERR_TOO_MANY_REDIRECTS error. In these circumstances, disabling the file will allow you to get access back to your website. Follow the steps below to disable the .htaccess file.

    1. Access the File Manager using the Hostinger CPanel.
    2. Find the .htaccess file

Clicking on .htaccess file

  1. To rename the file, right-click on it. Choose a file name like .htaccess_revoked or something.
  2. Next, check if the website loads correctly.

If the website loads correctly, check the .htaccess file’s configuration by right-clicking on it and choosing the edit option. It should appear like the default .htaccess configuration. If it doesn’t, delete the content from the file and paste the default values in its place.

# BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress

Now, rename the file to .htaccess, and it should solve the issue. If these issues were caused due to incorrect configuration, these steps should resolve the issue.

Changing your old .htaccess settings may botch up your website settings. It would be a good idea to create a backup of the original file before implementing any changes.

6. Turn off CDN (Content delivery network) temporarily

Third-party service installed within your host can also be a reason for the redirect looping errors. Most of the time, CDN configuration is the main culprit. What is CDN? It is a complex system of proxy servers installed in various locations to path WP high website load speeds.

When your CDN’s option is set to Flexible, significant problems arise because it sends encrypted requests to your website’s server. In case your website is configured to redirect all HTTP requests to HTTPS while using the Flexible mode, you will encounter the ERR_TOO_MANY_REDIRECTS error.

To stop that from happening, configure the CDN’s SSN settings to full or full (strict). Doing this will solve the issue, provided you have an active SSL certificate. However, before taking this step, you need to ensure that your CDN is causing the problem. For that, you need to disable your CDN for some time. Use Cloudflare to accomplish this task.

  1. Go to the Cloudflare dashboard and find the Overview tab.
  2. On the bottom right-hand of the page, you will see the Advanced Actions section.
  3. Now, pause Cloudflare on the website.

Now, go to your CPanel to disable Cloudflare and fix the redirect loop error. Find the steps below:

  1. Go to the Cloudflare menu under Domains on your CPanel dashboard.
  2. Now, turn off the SSL/Encrypt communication setting, save the changes.
  3. After disabling Cloudflare, clear the cache one more time.

A must-read: 15 Ways to Improve WordPress Website Performance in 30 minutes

Final Thoughts

We hope that the steps above have helped you resolve the ERR_TOO_MANY_REDIRECTS error in WordPress.

We are an expert WordPress agency with decades of experience providing WordPress Development, Support, and Maintenance services. Please get in touch if you’d like any further help in improving the WordPress website.