How To Fix ERR_TOO_MANY_REDIRECTS Errors On Your WordPress Site.
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?
Why do you fall into an infinite redirect loop?
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.
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.
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:
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.
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.
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’.
- 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.
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.
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.