November 15, 2019
4 min Read
Tomas A.
If you see the err_too_many_redirects error on your WordPress site, don’t panic! It just means that your website is in an infinite loop of redirection. While this error sounds scary, it’s not that hard to fix. In this tutorial, we’ll show you how to do it. Let’s take a look!
err_too_many_redirects happens when a browser can’t connect to the correct server of your website. In other words, the browser goes back and forth through URLs and severs, trying to figure out the location of your website and hence, sends it into a loop of redirects.
This error can happen due to quite a few reasons, from the browser itself to misconfiguration in your website settings, or corrupted plugins, it’s almost impossible to know what to do right away when this error pops out.
Luckily, there are a few things you can do to try and fix this error, and we’ll cover everything one by one!
You can try every method below until one fixes the error.
Browser data can sometimes store corrupted or outdated cookies and cache, which may cause the err_too_many_redirects error. So, before making changes to your site, it’s wise to check if it’s not just your browser causing the error by deleting its data history.
To do that, follow these simple steps:
On Chrome, simply go to the three small dots on the upper right menu bar of the brow, press Settings. Scroll down and click on Advanced, then Clear Browsing Data.
On Mozilla, head to the upper right menu button, select Options. Choose Privacy and Security, then Clear Data.
On Safari, locate History in the top menu bar, then select Clear History. Doing this will automatically delete cookies and browsing data.
If clearing your browsing data doesn’t fix the problem, check if your WordPress URL settings are configured correctly.
You can do it through the WordPress dashboard or manually:
When your website is experiencing this error, you probably can’t enter the admin area of your WordPress installation. In that case, you may change the URL settings with the help of your wp-config.php file.
You can edit the file either through your File Manager or an FTP client like FileZilla. In this example, we will show you how to edit the file via Hostinger’s File Manager:
define('WP_HOME','http://example.com'); define('WP_SITEURL','http://example.com');
As an alternative, you can also edit URL settings via your database. You can find a great and easy guide on how to do that here.
IMPORTANT!! If your website file is in the default root folder (/public_html/), you can use the default (http://example.com/
) URL. If it’s in a subfolder like (/wp/), then replace the URL to something like (http://example.com/wp
).
If you somehow manage to login to your WordPress dashboard, then follow these steps to review and change your URL settings from the admin area:
In some cases, the err_too_many_redirects error happens because of the WordPress cache.
Another reason that may cause err_too_many_redirects is a corrupted/outdated plugin. To see if it’s the source of the problem, disable all of your plugins by manually editing its folder.
You can do so through your hosting providers’ File Manager or an FTP client. Follow these steps to disable your plugins manually using FileZilla FTP client.
If disabling the plugins folder doesn’t fix the problem, you can try a more drastic option below.
Another possibility is that some setting in your .htaccess file is making your website go into a loop of redirection. If that’s the case, you can disable your .htaccess file to regain access to your site.
If it works, check the .htaccess file’s configuration by right-clicking on the file and Edit. It should look like the default .htaccess configuration. If it’s not, delete the content from the file and paste these default rules instead:
# 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
Rename the file back to .htaccess, and that’s it! If misconfigurations in the .htaccess file are causing the error, this method should fix the problem.
Note: since replacing your previous .htaccess settings may break your website settings, you should always make a backup of the original file before making any changes.
In this tutorial, you’ve learned five methods to fix the err_too_many_redirects error on your WordPress site. Here’s a quick recap of the methods:
Pretty easy, right? If you have other methods you want to share, or if you have any questions, do drop us a comment. Good luck!
June 19, 2017
Unfortunately, NONE of the sites that I've visited over the past 3 days address this issue as it pertains to running WordPress under IIS 8.0 on Windows Server 2012 R2. Note that there is NO .htaccess file, there is only a wp-config.php file. I have searched and searched and searched for a solution to this issue, with zero luck thus far. Please note that the ADMIN area (for WordPress), works fine. It is only when I try to fire up the site itself that this "too many re-direct" issue comes up. In fact, many of the sites I've visited state that the issue is caused by "the hosting company." Unfortunately, I AM the hosting company, so this does not help me. Please help! This is driving me crazy!
Replied on June 20, 2017
I have found that the solution to this problem is as follows: Add the following line of code to the FUNCTIONS.PHP file in the wp-content folder, for the theme you are using: // Remove Canonical URL functionality (as per URL: http://codex.wordpress.org): remove_filter('template_redirect', 'redirect_canonical');
Replied on June 21, 2017
Hey, Thank you for sharing your find!
Replied on February 26, 2018
hi. i too much gooogle, and solution was born: add in wp-config.php lines: define('FORCE_SSL_ADMIN', false); its disable some function, but truble was gone. in my situation i migrate to "https" from "http", and use plugin - Rename wp-login.php my wp-config.php was contain lines: define('WP_SITEURL','https://mysite.com'); define('WP_HOME','https://mysite.com'); without line "define('FORCE_SSL_ADMIN', false);" i have loop redirects.
April 14, 2018
my wp-admin as too many redirects . i deactivated 404 & redirect plugins. Thanks for your article, it helped alot :-)
May 02, 2018
Your article helped me a lot! It took me a week to configure and fix all the redirect issues. Many thanks!
October 28, 2018
Option -2 resolved my problem of TOO MANY REDIRECTS while accessing wp admin. Thanks a Lot.
May 26, 2019
Step 2 worked for me. Thank you Tomas!
August 28, 2019
Thanks bro. very helpful information.
November 30, 2019
Thankyou so much, after 7 days I found the great man with this tutorial. option 5 is work wel
Domantas G.
Replied on June 19, 2017
Hey, Sorry but Hostinger offers Linux hosting only and we don't really have experience in Windows servers. Anyway, you may want to make sure that you have setup WordPress on Windows server correctly.