What Is the ERR_TOO_MANY_REDIRECTS Error and How to Fix It in WordPress

ERR_TOO_MANY_REDIRECTS, also known as a redirect error, indicates your website is caught in an endless cycle, attempting to direct the browser from one page to another without arriving at the intended destination page.

Fortunately, this issue is relatively benign, and you can resolve it using the right approach. This article will present several ways to address the ERR_TOO_MANY_REDIRECTS error in WordPress, its various causes, and how it looks across different web browsers.

Download comprehensive HTTP status codes cheat sheet

Error CodeERR_TOO_MANY_REDIRECTS
Error TypeBrowser error, code error
Error VariationsThis page isn’t working. example.com redirected you too many times.
This page isn’t working right now. example.com redirected you too many times.
The page isn’t redirecting properly.
Safari can’t open the page – Too many redirects occurred trying to open ‘example.com’.
Error CausesCorrupted cookies or outdated cache
Poor website address configuration
Problematic WordPress plugins
Incorrect server settings
Bad HTTPS settings
Third-party service issues

ERR_TOO_MANY_REDIRECTS is a common browser error showing that a website is stuck in an infinite redirection loop, where the browser is directed from one page to another without reaching a destination.

What Causes ERR_TOO_MANY_REDIRECTS?

Here are the most common causes of ERR_TOO_MANY_REDIRECTS:

  • Corrupted browser cookies or outdated cache. Problems persist in the user’s browser, such as corrupted cookies or outdated cache data, causing continuous redirects.
  • Misconfigured WordPress address. Incorrect settings in the WordPress URL configuration can lead to this error.
  • Faulty WordPress plugins. Plugin conflicts or issues with installed plugins, particularly those managing redirects or security, can trigger an endless redirection loop.
  • Misconfigured server settings. Incorrect web server redirect settings, particularly in Apache’s .htaccess file or the NGINX config file, can cause redirect loops.
  • Incorrect HTTPS redirect rules. Misconfigured redirects in HTTPS can cause this error, especially if there’s a mismatch between secured and unsecured content.
  • Issues with third-party services. External factors, such as DNS redirection issues or misconfigured CDN SSL/TLS settings, can also contribute to this error.

How Does ERR_TOO_MANY_REDIRECTS Look Like On Different Browsers

Here’s how the ERR_TOO_MANY_REDIRECTS error message looks across different browsers.

Google Chrome

Chrome displays a message stating, “This page isn’t working. example.com redirected you too many times” highlighting a redirect loop error. The browser often suggests actions to fix this, confirming the redirection problem.

Mozilla Firefox

Firefox warns its users with the “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” message indicating an endless redirection cycle.

Safari

In the Safari browser, the warning is “Safari can’t open the page ‒ Too many redirects occurred trying to open ‘example.com.'” This implies a loop where a page redirects to another, which redirects back, creating an infinite loop.

These browser-specific redirect issues help you identify and understand the nature of the ERR_TOO_MANY_REDIRECTS happening on your site.

How to Fix ERR_TOO_MANY_REDIRECTS

Here are seven troubleshooting steps to fix the ERR_TOO_MANY_REDIRECTS issue in WordPress. We recommend trying each individually to identify the root cause of the redirect loop. Remember to track your changes so you can revert them if necessary.

1. Clear Browser Data

Browser data sometimes stores corrupted cookies and an outdated cache, leading to the ERR_TOO_MANY_REDIRECTS error. Before making further changes to your WordPress site, it’s wise to see if your browser is causing the issue by deleting its data history.

Here’s how to clear browser data in Chrome:

  1. Open Chrome and click the three vertical dots in the upper-right corner.
  2. Navigate to Settings → AdvancedClear browsing data.
  3. In the clear browsing data window, make sure to select Cookies and other site data and Cached images and files.
  1. Click Clear data to delete cookies, cache, and other junk files.

Please note that the steps for clearing cache and cookies in other browsers, such as Microsoft Edge, should be similar, though specific menus and options might vary slightly.

If the redirect error persists, then your browser extensions could be the culprits. Some extensions can interfere with web page loading and interactions. Disabling them one by one can help identify if a browser extension is causing the browser redirection error.

2. Verify the WordPress URL Settings

If the previous troubleshooting method was unsuccessful, the next step is to check your WordPress URL for the correct configuration.

An infinite redirect loop problem often arises when web admins accidentally direct their site to the wrong domain when migrating WordPress hosts or changing domain names.

To verify your website URL settings, you can proceed manually, through the database, or via the WordPress admin dashboard.

Checking and Changing URL Settings Manually

If you encounter the “too many redirects” error and cannot access your WordPress admin area, you may need to adjust your URL settings manually. Ensure your WordPress host allows editing the wp-config.php file, either through a File Manager or an FTP client like FileZilla.

Here’s how to edit wp-config.php using Hostinger’s File Manager:

  1. Log in to hPanel and navigate to Files → File Manager.
  2. Locate the wp-config.php file in the public_html directory, right-click it, and select Edit.
  1. Insert the following lines into the file, replacing http://example.com with your actual domain name:
define('WP_HOME','http://example.com');

define('WP_SITEURL','http://example.com');
  1. Save the changes and visit your site to see if the URL adjustment has resolved the WordPress ERR_TOO_MANY_REDIRECTS error.

Edit URL Settings via Database

To fix redirect issues, you can also modify the WordPress URLs in the MySQL database via phpMyAdmin. Follow these steps:

  1. Find your WordPress database name from the wp-config.php file.
  1. Log in to hPanel and go to Databases → phpMyAdmin. Click Enter phpMyAdmin next to your WordPress database.
  2. In phpMyAdmin, open the wp-options table by double-clicking it.
  1. Within the wp-options table, locate the siteurl and home entries. Click Edit next to each.
  1. Input your correct WordPress site URL in the option_value field for both entries. Click Go to save changes.

Remember, if your website is in the default root folder (/public_html/), use the standard URL (http://example.com/).

If it’s in a subfolder like /wp/, then change the URL to http://example.com/wp.

Changing URL Settings via Administrator Dashboard

If you have access to your WordPress admin area, you can change the URL settings directly from the dashboard. Here’s how:

  1. From your WordPress admin dashboard, go to Settings → General.
  2. Review the WordPress Address (URL) and Site Address (URL) in the default settings.
  1. Ensure both URLs are correctly configured. Remember to save any changes you make.

3. Deleting WordPress Cache

Besides web browsers, your site can also accumulate a corrupted cache, potentially leading to the ERR_TOO_MANY_REDIRECTS error. Here’s how to clear your website’s cache using Hostinger’s automatic cache feature and various popular caching plugins:

1. Enable Automatic Cache

If you’re a Hostinger customer, you can use our automatic cache feature. Designed primarily to bypass PHP requests and render web pages quickly, it also clears the cache every 30 minutes, which can help resolve redirect errors.

To enable this option, go to Advanced → Cache Manager in your hPanel dashboard. Then, toggle the Automatic Cache option to activate it.

Once activated, the feature will work automatically. If needed, you can manually delete your website’s cache by clicking Purge All.

2. Using the WP Fastest Cache Plugin

WP Fastest Cache’s free version provides a sufficient caching feature to help you clear the WordPress cache. Follow these steps to use it:

  1. Ensure the plugin is installed. If not, navigate to Plugins → Add New and search for WP Fastest Cache. Then, click Install Now → Activate.
  2. Once activated, go to the WP Fastest Cache menu from your left sidebar.
  3. In the Delete Cache tab, choose either Delete Cache or Delete Cache and Minified CSS/JS.

3. Using the WP Rocket Plugin

WP Rocket is a premium plugin that offers comprehensive caching methods, database optimization, and lazy loading to speed up your WordPress website. It also allows you to clear the website cache. Here are the steps:

  1. After purchasing WP Rocket, download this caching plugin to your computer.
  2. Access your WordPress dashboard, go to Plugins → Add New Plugin → Upload Plugin, and install WP Rocket manually.
  3. Once installed, navigate to Settings → WP Rocket.
  4. Under Quick Actions, click Clear Cache to eliminate all cached files, including page, object, and server cache.

4. Deactivate and Test WordPress Plugins and Themes

As the leading content management system, WordPress offers numerous plugins and themes to enhance your site’s functionality and aesthetics. Yet, installing problematic plugins can trigger the ERR_TOO_MANY_REDIRECTS error.

Moreover, using a WordPress redirection plugin for custom redirects may cause conflict with the server’s redirection rules configuration, potentially creating an endless loop.

To identify if a specific plugin is causing the issue, temporarily disable them via the WordPress dashboard’s bulk actions dropdown menu under Plugins, through your host’s File Manager, or using the FileZilla FTP client.

Here, we’ll use the latter:

  1. Launch FileZilla on your computer and connect to your server.
  2. Once logged in, access the Remote Site panel. Then, go to public_html → wp_content and locate the Plugins folder.
  1. Right-click the folder and rename it to plugins_backup. Then, try accessing your website. If the error message no longer appears, then one or more active plugins are corrupted or outdated.
  2. Rename the folder back to Plugins and individually troubleshoot each plugin folder to find the problematic one. We recommend starting with the most recently installed plugin.

5. Verifying the .htaccess File and Server Configuration

Redirect loops can sometimes originate from issues within the WordPress .htaccess file, which contains permalink rules and may include custom configurations. If you suspect this file is causing problems, you can temporarily deactivate it to regain site access.

Remember, always back up the .htaccess file before disabling or making changes, ensuring you can restore the original settings if necessary.

Here’s how to manage .htaccess with Hostinger’s File Manager:

  1. Access the hPanel dashboard and select File Manager.
  1. Locate your .htaccess file within public_html.
  2. Right-click the file and select Rename. Use .htaccess_disabled as the new name to turn it off.
  1. Check if your website now loads correctly.
  2. If this action resolves the issue, the file may have misconfigurations. To edit, right-click the renamed file and select Edit. The default configuration typically looks like this:
# BEGIN WordPress

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteBase /

RewriteRule ^index.php$ - [L]

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . /index.php [L]

</IfModule>

# END WordPress

After making necessary edits or restoring the default settings, rename the file back to .htaccess. This should correct the .htaccess redirect loop.

This approach is applicable for hosts using LiteSpeed or Apache web servers, as they utilize .htaccess.

If your hosting service uses NGINX, the configuration file will differ. We recommend you consult with your server administrator or hosting provider for the correct configurations.

6. Check Your HTTPS Settings

Ensure that your website’s HTTPS settings are correctly configured to avoid the ERR_TOO_MANY_REDIRECTS error. Incorrect HTTPS configuration can lead to many issues that disrupt site access.

Mixed Content Redirection

When your site is secured with HTTPS but loads partial content, like images, scripts, or stylesheets, over HTTP, it results in mixed content. This prompts browsers to block insecure content or attempt to solve the issue by redirecting, which may lead to errors.

Utilizing the Redirect Mapper tool can help identify and correct these mixed content links, ensuring all resources are loaded over HTTPS.

HTTP to HTTPS Redirection

Redirecting all HTTP traffic to HTTPS is a common practice to secure connections. You can manage this through WordPress settings or specific .htaccess file rules. However, an incorrect HTTPS redirection setup can lead to infinite loops.

It’s important to verify that your .htaccess file or WordPress settings are enforcing SSL to force HTTPS, preventing circular redirects.

SSL Certificate Validation and Renewal

A valid and active SSL certificate is crucial for HTTPS redirects. Make sure your SSL certificate is installed correctly, validated, and regularly renewed on your hosting server.

Most providers will notify you when SSL renewal is ready. An expired SSL certificate can result in security warnings and redirection issues as browsers try to establish a secure connection.

7. Inspect Your CDN Configuration

Another potential cause of redirect loop errors could be the settings of third-party services, such as content delivery networks (CDNs).

While CDNs enhance website load speeds by distributing content across servers globally, specific SSL/TLS encryption mode settings might inadvertently lead to redirection issues.

Managing Redirection in Cloudflare

To determine if Cloudflare might be contributing to the redirect loop, you can:

  1. Log in to your Cloudflare dashboard and select your website.
  2. Go to the Overview tab.
  1. In the Advanced Actions section, choose Pause Cloudflare on Site. This temporarily suspends Cloudflare’s features, allowing you to see if the issue remains without it.

Fixing Cloudflare SSL/TLS Settings

Cloudflare’s SSL/TLS encryption mode is pivotal in managing requests between the CDN and your WordPress site.

However, setting Cloudflare’s SSL mode to Flexible can create issues by prompting Cloudflare to send unencrypted requests to your server. If your site has HTTP to HTTPS redirect configurations enabled, this may cause endless redirects.

To prevent this, adjust Cloudflare’s SSL settings to Full or Full (strict) when you have a valid SSL certificate on your server. This ensures the connection between Cloudflare and your server complies with your site’s HTTPS redirection rules.

Verifying DNS Configuration

Improper DNS configurations can trigger ERR_TOO_MANY_REDIRECTS errors, especially concerning the www and non-www versions of your site. Verify that your DNS records in Cloudflare or any CDN accurately point to your server without causing unintended redirects.

After adjusting these third-party service settings, we suggest you delete your site’s cache again.

Fixing ERR_TOO_MANY_REDIRECTS – Video Tutorial

Watch our video tutorial for a visual guide on fixing infinite redirects.

Subscribe For more educational videos! Hostinger Academy

Conclusion

In this guide, we’ve covered multiple strategies for resolving redirection issues that can negatively impact user experience and require website maintenance. From clearing the browser cache to examining CDN settings, each step ensures seamless site functionality.

By applying these solutions, you can effectively address and prevent the ERR_TOO_MANY_REDIRECTS error. If you have questions or additional methods to suggest, please feel free to contribute in the comments section below.

ERR_TOO_MANY_REDIRECTS FAQ

This section will answer the most common questions about fixing the ERR_TOO_MANY_REDIRECTS error in WordPress sites.

Why Is My URL Redirected Too Many Times?

Your URL might be redirected too many times due to redirect chains, where one URL leads to another and so on, creating a loop. To prevent this, ensure there are direct paths from the original URL to the final destination, thereby avoiding redirect chains.

How Can I Prevent an ERR_TOO_MANY_REDIRECTS Error?

You can prevent the ERR_TOO_MANY_REDIRECTS error by regularly debugging redirects and analyzing server log files for anomalies. Ensure your site’s .htaccess file, redirection plugins, and server settings are correctly configured to maintain smooth navigation.

Can I Encounter the ERR_TOO_MANY_REDIRECTS Error on Mobile Devices?

Yes, the ERR_TOO_MANY_REDIRECTS error can occur on mobile devices as well, impacting user access to websites through mobile browsers. Utilizing network tools and redirect checkers can help diagnose problematic redirection patterns that cause the error.

Author
The author

Ariffud Muhammad

Ariffud is a Technical Content Writer with an educational background in Informatics. He has extensive expertise in Linux and VPS, authoring over 200 articles on server management and web development. Follow him on LinkedIn.