If your WordPress site is down because of an ERR_TOO_MANY_REDIRECTS error, you are not alone! Almost every other Windows user has faced this mysterious error. The error usually pops up with a text that says, ‘This web page has a redirect loop and then restricts the loading of the entire website. So how do you fix err_too_many_redirects WordPress? Let’s find out!
why does ERRor_TOO_MANY_REDIRECTS occur?
Well, the too many redirects error generally occurs when the user is redirected from the intended URL to a totally new one. Therefore,the user unluckily gets an infinite redirect loop. When your browser detects the situation, it simply breaks this loop and displays the error message stating that you were do page redirected too many times.If you are facing the same issue then don’t worry, this blog will help you to fix err_too_many_redirects error.
Why do you fall into an infinite redirect loop?
The origin of this problem could either be caused by the server or the computer of the website visitor.Typically the err_too_many_redirects error occurs after an immediate change on the WordPress website, a setting change made by third-party services, or a wrong configuration of redirects on the server. Fortunately, this error is easy to fix. To help you in this regard, let us look at different ways to fix the err_too_many_redirects error. This will help you get your site up and running in no time!This is one of the errors which rarely gets resolved on its own and requires you to take an appropriate set of steps to fix it. There are many variations of this error. The exact version you see is based on the browser you are using.Mozilla Firefox
If you are using Mozilla Firefox as your default browser, the error message will appear as ‘The page is not redirecting properly’.
This shows that server is simply redirecting the request of a given address in a manner that cannot be completed by Firefox.
When you are using Google Chrome as your browser, you may see the err_too_many_redirects Chrome error as ‘ERROR_TOO_MANY_REDIRECTS’ or ‘This webpage has a redirect loop error’.
The browser will display the following message:
Page is not working. (Insert domain name) redirected you too many times.
In the case of Microsoft Edge, the message will display as ‘Hmm…can’t reach this page’.
Of course, this is not a helpful message and you will end up wondering what should be done to fix it!
Ways to this Error
There are a number of ways to fix the problem. So, stop scratching your head and try one of these straightforward fixes.
1. Rectify the System’s Time and Date
Sometimes, the only reason why you are facing a this error is that the time and date of your system are either outdated or inaccurate. So make sure to check this setting on your system and update the time/date properly.
To change the time and date on your system:
- First, press Win + R on your keyboard. That will invoke a Run box. Now type ‘control’ and click OK.
- As you are now in the Control Panel of your system, select Date and Time.
- Select the tab Internet Time and click on Change Settings.
- In the Internet Time Settings, check the ‘Synchronize with an internet time server‘ and choose a time server.
- Then click on the button Update now and click on OK.
These steps should fix the date and time on your system. Try loading the website again and check if that was the actual issue.
2. Check Home/Site URLs
The Site/Home URL is the address that your visitors enter in their browser to access your site.
Home URL can also be used to refer to the Site Address (Site) tab under Settings>General in your WordPress
At the Location of your site URL, you can find the site and its core files
This is also known as the WordPress Address (URL) on the settings page for WordPress single installs.
If both of these URLs are not set properly or if there is a typing mistake, then it could be the major cause of your redirect loop error. Check these two fields to make sure that they are precisely set and not pointing at a mismatched or wrong domain.
In both of these cases, the errors are the same. For instance, the addresses must not include a slash or have inconsistent structure. Both the addresses must have HTTP:// in the start unless an SSL certificate is installed. In the case of the SSL certificate, there should be https:// at the start.
Similarly, if any of the sites include www. in the front, this must also be included in the other address. In short, both these URLs must mirror each other, so be sure to check them properly. However, if you are unable to access the settings page or have a Multisite network, you may still modify these addresses to ensure they are accurate. For this, you will need to override the settings by entering values in the wp-config.php file.
You can access the wp-config.php at your WordPress site root and can also access it via SSH, FTP, or WP-CLI.
3. Redirect Pages by Disabling WordPress Plugins
Another quick way to eliminate this WordPress error is to temporarily disable all the WordPress plugins on your site. For instance, plugins like Yoast SEO or Redirection, lets you execute redirects.
Oftentimes, the updates or settings of these plugins may also conflict with redirects which are already set on the server, creating a error_too_many_redirects WordPress loop. When you disable a plugin, it doesn’t harm any of your data. Most likely, you will not be able to access the admin, but you can login via SFTP to the server and rename the plugin folders into something like ‘plugins_old’. Once done, check your site if it’s up and running again.
If this solution works for you and your site is up again then test each of your plugins separately. Don’t forget to rename the plugin folder back to its original name ‘plugins’ and then rename every plugin folder inside this, separately, until you identify the problematic plugin.
As soon as you see the redirect message again, you can recognize that the last plugin you activated is the real culprit. Now you must check the settings to ensure that they are accurate. Also, make sure you don’t enter a similar redirect twice since this will cause the error.
However, if the issue is not fixed after changing the plugin settings, then you can contact WordPress experts.
4. Disable The .htaccess File
Another possibility of the redirect loop error can be the settings in your .htaccess file. Chances are that these changes are making your site enter into a redirect loop. In this scenario, simply disable the .htaccess file to restore your site’s access.
Following are the steps to disable .htaccess file:
- Enter into File Manager by using the hosting control panel
- Choose your .htaccess file. Select Rename by right-clicking it
- Now rename the .htaccess file into another name such as .htaccess 1
- Access the domain and test if your site is loading now
If the issue is not fixed by following these steps, then check the configuration of the .htaccess file. You can perform this by clicking on Edit option. If you are uncertain about its appearance, then try making use of the default .htaccess configuration.
All you need is to delete the contents of the .htaccess 1 file and paste the default configuration instead. Once you have completed this step, simply rename .htaccess 1 back to the original .htaccess.
Now, check if your site is working with the default configuration. If the issue is fixed now, you know that this error occurred due to the improper .htaccess configuration.
Since, there is a possibility that your site might stop working after these changes, make sure you keep a backup of the original .htaccess file. Also, if you replace any of your old .htaccess settings, chances are some of your plugins, permalinks, and settings may stop functioning.
5. Clear Browser Cookies on That Particular Site
When you are using web browsers like Mozilla Firefox or Google Chrome, right below the error message you may find a recommendation to clear your cookies. This is because your browser’s cookies might contain some faulty data that may result in the err too many redirects message. You can try this solution even if you are not encountering the error for your own site but also other websites.
Cookies store your ‘logged in’ site’s status and some other settings, so we simply recommend deleting your browser cookies on that specific site which cookies might be causing a difficulty. This will help you in accessing your specific site successfully.
If you are using the Google Chrome browser, go to Settings by clicking on the three dots that appear at the upper right-hand corner of the screen. Then, scroll down and go to ‘Advanced’ and then ‘Content Settings’. Click on Cookies and then ‘See all cookies and site data’.
Once you are done, look for the domain where you are facing the redirect loop error message. Next, simply delete the cookies that are currently stored in your system for that specific domain. Lastly, try to access the site again and check if the issue is resolved.6. Clear Browser Cache on That Particular SiteIn addition to clearing the browser cookies of a particular site, you should also clear the server, proxy, and browser cache.This is because redirect loop error can also be cached. That is why you must clear the WordPress cache, 3rd party proxy services, and the server (including the browser) if needed.
- To clear the WordPress cache : If you can access the admin dashboard of WordPress, you can go the cache plugin settings and clear the cache. For this, you can use various tools such as W3 Total Cache, Cache Enabler, and Super Cache.
- To clear proxy cache : If you are using a 3rd party proxy service such as Sucuri or Cloudflare, you should clear the cache on these sites. To clear the Cloudflare cache, login to the Caching dashboard and click on ‘Purge Everything’. For clearing Sucuri cache, go to ‘Performance’ on the dashboard and click on ‘clear cache’.
- To clear browser cache : To check if the trouble lies with your browser cache, open your browser in incognito mode, without clearing your cache and see if the issue persists. You can also do it by using any other browser and checking if the err too many redirects error occurs.
7. Check Browser Extensions
One reason for facing the ERR_TOO_MANY_REDIRECTS could be an improper browser extension. Go to the extension manager that checks all the extensions that are installed on your current browser.
To check the extensions in Mozilla Firefox and Chrome, follow the below mentioned steps.
In Firefox, type ‘about.addons’ in the address bar and press Enter. Now, select Extensions. You can now see all of the Firefox extension here.
ChromeIn Chrome, type in the address bar ‘chrome://extensions’ and press Enter. Now you can see all of the Chrome extensions, and you can easily enable/disable any or all of them from here.Just like in the case of plugins, you can also disable all the extensions and then activate each one of them, one-by-one, to find the culprit extension. This will help you in specifically to identify the issue and to avoid the redirect loop error in the future.8. Upgrade and Use Dedicated IPThe one user-friendly way to get to your site is the domain name. Your domain name is actually linked to the IP address where the site is hosted. As you enter the domain in the browser, it links to the site’s IP address and accesses your site from there. Generally, only a single site is linked to an IP address.However, this connection or direct route can be broken if you host the network or your site through shared hosting. Another reason could be the installation of multiple sites by using only one IP address on the VPS.When multiple sites share a single IP address, your browser faces difficulties and cannot be sure which site it is supposed to access. Moreover, whenever you visit a site for the first time, the browser creates a cookie and includes the IP address for the site. So if you visit another site using the same IP address, the browser will locate the existing cookies for this IP and notice a different URL. Hence, it can’t create a new cookie or issue the same one. Eventually, you will come across the redirect loop error because the browser will not be able to access the site.That is why upgrading or using a dedicated IP address for each of your sites is the best solution. Otherwise, you can move on and check the other fixes to get rid of the redirect loop error.9. Check 3rd Party ServicesAnother possible cause of the redirect error may be reverse-proxy services like Cloudflare. This happens when their Flexible SSL feature is enabled, and you also have the SSL certificate installed with the WordPress host. The reason for this is that, when flexible mode is chosen, the requests to the hosting server are sent over the HTTP.Since the host server is likely to have a redirect in place (i.e. from HTTP to HTTPS), it causes a redirect loop. However, to solve the problem, you must modify the Cloudflare Crypto settings from Flexible to either Full (strict) or Full.You may use the ‘Always Use HTTPS page’ rule to simply redirect the users to HTTPS without establishing a loop. If you choose this rule, watch out for Cloudflare forwarding URL redirection rules. If the domain shows itself as the destination, be vigilant and avoid creating a loop. If you do this, this will cause infinite redirect errors on all the affected URLs, making this problem difficult to resolve.
There are many reasons you get a err too many redirects error. In this guide, we have discussed the most frequent and common reasons. While it can be a frustrating experience to come across this error, again and again,it is indeed easy to fix the redirect loop error.Needless to say, when you develop a WordPress site, this is one of the most popular errors you may run into. Different web browsers display this redirect error message in different ways. Regardless of how these error messages are being displayed, all of them point towards one main issue— configuration issues in the WordPress settings that cause your site to enter into a redirect loop. Thanks to the many possible solutions in this guide, we can now fix the err_too_many_redirects error in a timely manner.
Have you tried any of the above-discussed solutions to fix the redirect loop error? If yes, let us know in the comment section below.
If you enjoyed this blog article and found it to be helpful, then you should check out our other WordPress Blogs to gain more in-depth knowledge about WordPress.