How to Fix “Too Many Redirects” WordPress Error in 2021 | Cheema Developers Blog


Battling the Too Many Redirects WordPress error?

This error occurs when your web site will get caught in an infinite loop of redirects. As a substitute of permitting the loop to proceed, your net browser will simply show the Too Many Redirects error message.

Usually, this error can come from points with caching/cookies, your web site’s URLs, your web site’s .htaccess file, or doubtlessly the plugins that you just’re utilizing.

On this submit, we’ll focus on what this error is and discover a few of its commonest causes. Then, we’ll then share six methods to repair the Too Many Redirects WordPress error. Let’s get began!

What causes the “Too Many Redirects” WordPress error?

The Too Many Redirects WordPress error happens when a consumer’s browser cycles via a number of URLs and servers attempting to find your web site. Because of this, the browser will likely be unable to connect with the proper server, and the customer turns into caught in an indefinite redirect loop.

Totally different browsers will warn customers about this error in numerous methods. Nevertheless, most browsers will show a warning stating that the web site “redirects too many instances”, or that the web page “isn’t redirecting correctly”. For those who encounter both of those warnings when attempting to entry your WordPress web site, likelihood is there’s an issue with your site’s redirects.

Right here is how the error represents in numerous browsers:

  • Chrome – This web page isn’t working. Instance.com redirected you too many instances. ERR_TOO_MANY_REDIRECTS.
  • Firefox – The web page isn’t redirecting correctly.
  • Safari – Safari Can’t Open the Web page. Too many redirects occurred attempting to open Instance.com.
  • Edge – This web page isn’t working proper now. Instance.com redirected you too many instances. ERR_TOO_MANY_REDIRECTS.

There are a number of frequent causes of the Too Many Redirects WordPress error. These embody a misconfigured web site deal with, an outdated cache, or a plugin battle.

Whatever the trigger, this WordPress server error prevents individuals from accessing your web site. This may be disastrous for your conversion rates and will inflict long-term injury to your repute as a dependable {and professional} enterprise.

Relying on the severity of the redirect loop, it’s possible you’ll even be fully unable to entry your WordPress admin space. This makes it unimaginable to carry out essential duties equivalent to publishing new content, updating your plugins, and moderating your comments.

Methods to repair the “Too Many Redirects” WordPress error (finest strategies)

The Too Many Redirects WordPress error be attributable to a variety of various clashes, software program, and errors. Fortuitously, in case you do encounter the Too Many Redirects warning, there are a number of methods to resolve the redirect loop and get your web site again on observe shortly.

1. Clear browser cookies and cache

If there’s a mismatch within the URL information saved in your browser, this will set off a redirect error. You might also encounter this error in case you’ve carried out a redirect since your browser final cached the web page you’re attempting to go to

To find out whether or not this is perhaps inflicting your Too Many Redirects WordPress error, strive accessing your web site utilizing a unique browser or your browser’s Incognito window. If this seems to resolve the difficulty, likelihood is you have to clear the cookies and cache in your common net browser.

This course of will range relying in your chosen browser. For instance, in Google Chrome you possibly can clear the cache and cookies by clicking on the three-dot icon within the upper-right nook. Then choose Extra Instruments:

The Google Chrome web browser.

Subsequent, select Clear shopping information. Within the subsequent popup, choose a time vary. If you wish to delete every thing, choose All time:

You can resolve the Too Many Redirects WordPress error, by clearing the cache.

After selecting your time vary, choose the next checkboxes: Cookies and different web site information and Cached photos and recordsdata. Then hit Clear information.

Google Chrome will now delete all of its cookies and cache, and it’s best to be capable to entry your web site with out encountering the redirect error. For those who’re not sure the way to carry out this motion in your individual browser, we suggest referring to its official documentation for extra info.

Word – since you’re deleting your cookies, you’ll have to log in to your WordPress dashboard once more (and also you’ll even be logged out of different websites).

2. Clear your caching plugin

Caching plugins are a good way to boost your site’s performance. Nevertheless, they might additionally have an effect on how your web site handles redirects. In some cases, this may end up in the Too Many Redirects WordPress error.

For those who’re utilizing a caching plugin, it’s a wise thought to purge the cache. This course of will range relying in your chosen answer, so it’s a good suggestion to seek advice from your plugin’s documentation for particular directions. For instance, in case you’re utilizing the W3 Total Cache plugin, you possibly can navigate to Efficiency > Dashboard:

The W3 Total Cache plugin.

From there, you possibly can choose the Empty all caches button. Then strive accessing your WordPress web site. In case your browser now not shows the redirect warning, you’ve efficiently recognized the wrongdoer and resolved the issue.

Alternatively, in case you’re utilizing the WP Super Cache plugin you possibly can navigate to Settings > WP Tremendous Cache. Then choose Delete Cache:

The WP Super Cache plugin.

WP Tremendous Cache will now delete all cached recordsdata out of your web site. In case your caching plugin was triggering this error, it’s best to now haven’t any issues accessing your web site.

3. Disable (after which re-enable) your whole plugins

Plugins are an enormous a part of the WordPress expertise. Nevertheless, additionally they add a lot of third-party code to your web site. This may increasingly have an effect on the way in which WordPress core implements redirects, which might trigger this frequent error.

For those who’re utilizing a number of WordPress plugins, it may be troublesome to pinpoint the wrongdoer.

To check this, you possibly can then deactivate your whole plugins. If the redirect error abruptly vanishes, it’s extremely doubtless {that a} plugin is responsible.

To establish the wrongdoer, reactivate every plugin individually. As quickly as your browser resumes complaining in regards to the variety of redirects, you’ll have recognized the offending plugin. You possibly can then deactivate and delete that plugin, or attain out to its developer for assist.

Relying on the severity of the redirect situation, it’s possible you’ll be fully unable to entry the WordPress administration space. On this state of affairs, you possibly can connect to your website using FTP and an FTP consumer equivalent to FileZilla:

You can resolve the Too Many Redirects WordPress error using a service such as FTP.

After connecting to your web site, navigate to the /wp-content/ folder. You possibly can then deactivate your whole plugins by renaming the plugins folder to one thing like plugins.deactivate:

The FileZilla FTP client.

Subsequent, strive logging into the WordPress admin space. In case your dashboard is now accessible, you possibly can safely assume {that a} plugin is at fault.

In your FTP consumer, rename your plugins.deactivate folder again to plugins.

Now, whenever you go to the Plugins space in your WordPress dashboard, it’s best to see your whole plugins, however they’ll be deactivated. You possibly can reactivate them one after the other utilizing your dashboard till you discover the problematic plugin.

Alternatively, you can even use FTP to rename every plugin-specific folder individually (thus deactivating it), with the intention to pinpoint the offender.

If the plugin in query is important, then it’s possible you’ll have to discover a substitute earlier than bringing your web site out of upkeep mode. Nevertheless, with virtually 60,000 plugins within the official WordPress repository alone, it must be easy to search out an alternate that meets your wants – and doesn’t set off the redirect situation.

4. Verify your URL settings

A mismatch in your WordPress URL settings can generally trigger redirect errors. To examine your configuration, navigate to Settings > Normal within the WordPress dashboard:

The WordPress URL configuration settings.

For almost all of WordPress websites, the Website Handle and WordPress Handle will likely be an identical. If not, replace the one which’s incorrect. This could resolve your redirect woes.

You must also guarantee that the URL protocol is right. For instance, in case you’ve put in an SSL certificate to use HTTPS, guarantee that each of your web site URLs use HTTPS as an alternative of simply HTTP.

If the redirect error is stopping you from accessing the WordPress admin space, you possibly can replace your URL settings utilizing an FTP consumer. Connect with your web site and navigate to the /wp-content/themes/your-theme-folder:

FTP clients can help you resolve the Too Many Redirects WordPress error.

You possibly can then open the functions.php file utilizing a textual content editor equivalent to TextEdit or Notepad. Scroll to the underside of this file, and add the next code:

update_option( 'siteurl', 'https://instance.com' );
update_option( 'dwelling', 'https://instance.com' );

Be certain to switch “https://instance.com” with your individual net deal with. Then save your adjustments and add this file to your web site. If a URL misconfiguration was responsible, this could resolve the Too Many Redirects WordPress error.

5. Reset your .htaccess file

On most net hosts, WordPress manages redirects by way of its .htaccess server configuration file. Some plugins have been recognized to make adjustments to this essential file, which might intervene with how WordPress handles redirects.

Even in case you delete the plugin in query, its adjustments should still stay in .htaccess. For those who’ve tried all the earlier fixes and are nonetheless combating redirects, then it’s possible you’ll have to manually reset this file.

To begin, hook up with your web site utilizing an FTP consumer. You possibly can then navigate to your web site’s root folder:

The WordPress .htaccess file.

Since that is such an important file, it’s good to obtain a replica to your laptop. It will function a backup, simply in case you encounter any issues. With this backup safely saved in your laptop, you possibly can delete the .htaccess file out of your web site.

Subsequent, strive accessing your web site, to see whether or not this has resolved your downside. In case your WordPress web site appears to be functioning usually, likelihood is the .htaccess file was corrupted.

WordPress ought to recreate this file routinely, but it surely by no means hurts to verify. Within the WordPress dashboard, navigate to Settings > Permalinks. Choose Save adjustments (you don’t have to truly make any adjustments), and WordPress will create a recent, error-free .htaccess file.

6. Verify your area settings

Whenever you created your web site, you had the choice to assign it a URL utilizing the “www” prefix or to skip this prefix. For instance, you could possibly configure your web site as “https://www.instance.com” or simply “https://instance.com”.

Most hosting providers permit each configurations to work with a single area. This ensures that individuals can entry your web site no matter whether or not they kind “www” in when coming into your net deal with.

Whenever you install WordPress, it usually discovers these URLs routinely utilizing the default area settings out of your net host. Nevertheless, it’s potential to edit these settings after the preliminary configuration. If there’s a mismatch between your URL configuration in WordPress and your area settings, this will set off the redirect error.

Each supplier is totally different. Nevertheless, you possibly can normally examine your area settings utilizing the management panel offered by your net host. To begin, log into your internet hosting dashboard and navigate to your record of domains:

Managing domains through a web host.

It is best to be capable to see whether or not your area is ready to make use of “www” or not. Then, confirm that you just’re utilizing the identical scheme in WordPress by navigating to Settings > Normal within the WordPress dashboard.

If there’s a mismatch, then replace the WordPress URL settings, and save your adjustments. This must be sufficient to resolve the inconsistency and take away the Too Many Redirects WordPress error.

Repair the “Too Many Redirects” WordPress error for good

WordPress errors aren’t at all times straightforward to diagnose. If redirects are at present stopping you from accessing your web site, there may very well be a number of causes – and a number of potential options.

Whenever you do encounter the Too Many Redirects error, it is sensible to strive clearing the native browser cache and your caching plugin. If the error persists, it’s time to maneuver on to extra technical fixes. This contains resetting your .htaccess file and checking for a mismatch in your URL settings.

For some extra ideas, we’ve a normal submit on WordPress troubleshooting in addition to steps to fix 20+ common WordPress errors. We even have many posts on fixing different particular WordPress errors:

Do you will have any questions on the way to repair the Too Many Redirects error in WordPress? Tell us within the feedback!

Free information

5 Important Tricks to Pace Up
Your WordPress Website

Scale back your loading time by even 50-80%
simply by following easy ideas.



#Repair #Redirects #WordPress #Error