Err Too Many Redirects Error in WordPress may seem like a confusing message. But put simply, this error is your browser saying “I do not know where to go to get the page you are trying to view, I give up”.
If you are seeing err_too_many_redirects when you try to access your site, this could mean parts of your site, or your whole site may not be accessible to you and to your audience.
Thus, you may be happy to learn that this error is quite easy to fix.
In this article, we explain what causes this error in WordPress sites. We also take you through the steps to fix it.
- Fix cookies and caching.
- Check url settings.
- Reset .htaccess file.
- Fix plugin issues.
- Contact your webhost.
What Causes Error Too Many Redirects in WordPress?
Redirects are very useful web constructs for making a webpage available on a different URL. If you have a landing page about exotic cars, and then create another similar, but better page, you can decide to redirect people from the old page to the new one.
This is very important both for user experience and for SEO.
However, there are instances where redirects are not configured properly. For example, instead of the old page about cars leading to just the new, better page, it may lead to several URLs. When the browser doesn’t know which URL to follow, it gives up trying to fetch the page and returns the ‘err too many redirects’ error.
In other instances, your web browser may be caught in a redirection loop. This means, the old page redirects to the new page, but due to misconfiguration, the new page also redirects to the old page, which in turn redirects to the new page.
So the browser goes back and forth until it gives up trying to display the page.
When any of these happen, you see this error if you are using Google Chrome:
“This page isn’t working. www.example.com redirected you too many times. Try clearing your cookies. ERR_TOO_MANY_REDIRECTS”
If you are using Mozilla Firefox, this is the error shown:
“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. This problem can sometimes be caused by disabling or refusing to accept cookies.”
How To Fix This Error
As we considered, this error usually comes from misconfiguration of redirects in your WordPress website. In some cases though, it could be something as simple as clearing cookies or cache in your browser. Thus, we will explore these simpler fixes first before covering the more detailed ones.
Fix Cookies and Caching
As you can see above, both Google Chrome and Mozilla Firefox suggest that the problem may be related to cookies. This is thus a good place to start.
Clear Browser Cache and Cookies
Clearing your cookies and cache would take a minute, but could very well fix your issue. To do this in chrome browser, click on Menu and select Settings.
In settings, scroll to the bottom and click Advanced to expand other options. In the “Privacy and security” section, scroll to find “Clear browsing data” and click on it.
Next, select cache and cookies, select the duration you want to clear and click Clear Data.
To clear cache and cookies in Mozilla Firefox, click on the gear icon at the top right to access the settings page.
Next, select “Privacy & Security” and click Clear Data.
Select cookies and cache and click Clear.
If clearing browser cache and deleting cookies fixed it for you, awesome! If not, then read on.
Clear WordPress Cache
If you use a caching plugin, the next thing you should try is clearing your WordPress cache.
Search Google for instructions on how to clear cache in your particular plugin, and go on to clear your WP cache.
Thereafter, reload your site to see if the problem is fixed.
Check URL Settings
Redirect errors are very commonly caused by incorrect URL settings. You can find your URL settings in Settings > General.
There are two URL settings: WordPress URL (which specifies where all your WordPress files are located), and Site URL (which is the homepage you want users to access).
In most cases, both URLs should be the same. Check carefully to ensure there are no errors in either URL. For example, neither URLs should contain a backlash at the end.
Also, if they currently have www at the beginning (i.e. http://www.example.com), remove that (i.e. it should become http://example.com) and try reloading the site.
Otherwise, if they currently do not have www, add it and retry.
Two other points to check for:
(1) If one URL has www and the other doesn’t, adjust it so that they both have www, or no one has.
(2) If you currently use a secure protocol (https), change it to the normal protocol (HTTP) and try if this fixes your error. If it does, then your SSL needs to be set up properly before you can go back to using a secure protocol.
Editing URL when you cannot access your dashboard
In some cases, the redirect error may prevent you from accessing your dashboard. If this happens, you can change the URL by editing your wp-config file.
To do this, access your site files using FTP.
When connected, open the folder containing your WordPress files. In this folder, locate your wp-config.php file, right click on it, and click View/Edit.
Add these lines of code to this file (remember to change the URL to your site URL).
Save this file and click Yes on the prompt to upload the edited file.
Next, reload your site to see is the problem is resolved.
Reset .htaccess File
.htaccess is a configuration file in Apache server used for controlling the server settings, including redirect settings.
A problem in .htaccess may thus cause the too many redirects error in WordPress. To check if this is your issue, you need to reset your .htaccess file.
To do this, access your site files using ftp. When connected, locate the folder containing your WordPress files, and in this folder, find your .htaccess file.
First, download this file as a backup. Next, right-click and open the file for editing (edit the file on the server and not the backup copy).
Clean out the content of the .htaccess file and replace it with a default config (get the config here).
Now save and upload this default file to your server. When uploaded, refresh your site to see if the problem is fixed. If it is, great! If not, you may decide to re-upload you backup .htaccess file as it’s not the source of the problem.
Fix Plugin Issues
Do you have any redirection plugins installed? If yes, you want to start by disabling those.
If turning them off fix your issue, then you’ve pinpointed the problem.
Even if turning them off did not fix your issue, or you did not have redirection plugins installed in the first place, you want to go on to disable all your plugins (select all and apply the deactivate bulk action).
Next, backup your .htaccess file from your server and delete it (see the previous step).
Now try accessing your site. If it works, then the problem was from a plugin.
You can then go on to activate your plugins one after the other until the problem re-occurs. This way, you can easily identify the plugin causing your issue.
Disabling plugins without access to wp dashboard.
If this issue is preventing access to your dashboard, you can disable plugins manually. Read this guide: How To Disable WordPress Plugins Using FTP.
Contact Your Webhost
If all the steps above do not fix your issue, you should contact your web host. They have a lot of control over how your site URL and redirects work and may have made a change that caused your issue.
Even if they haven’t made a recent change, they would be able to identify and solve the problem for you if it is from their end.
Redirect issues are usually quite easy to fix. In fact, we do not expect you to read up to this part of the guide because we believe you should have found a fix in the solutions above, and gone about your business.
If that is not the case for you, then your issue may need a bit more attention. You can explain it in the comments below and our WordPress experts will offer you free WordPress help as much as we can.
If you, however, keep getting these error messages and want us to fix it for you, please request our wp support service and one of our experts will get to work on your site immediately.