The error “ERR_TOO_MANY_REDIRECTS” is a common WordPress error referred to as the “redirect loop” error. If you’re a WordPress “rookie” who doesn’t know how to fix it, this error can be bothersome. Yet, if you’re not a beginner or you’ve learned the quick-fix tricks, it’s one of the easiest errors to get rid of.
In a nutshell, the error implies that the browser doesn’t know how and where to go and fetch the page the user is trying to see. Typically this error leads to an uncontrolled cyclic redirection between pages due to misconfiguration in your WordPress settings file. The common culprits also include confusion led by WordPress plugins or the misconfiguration of redirects on your server.
This error is displayed differently in different browsers. Let’s take a look at how the “ERR_TOO_MANY_REDIRECTS” alert is shown in ‘Google Chrome’ and ‘Firefox.’
In ‘Google Chrome,’ this error will be displayed as either “This page isn’t working,” or as:
In ‘Firefox,’ this error will be displayed as:
Furthermore, in the ‘Microsoft Edge’ browser, the displayed error will read: “This page isn’t working right now.” No matter which browser you or your site visitors are using, it will be apparent that either part of your site or the whole site is inaccessible due to this error.
This post will explain in-depth why the error “ERR_TOO_MANY_REDIRECTS” occurs in WordPress and how to fix it.
“ERR_TOO_MANY_REDIRECTS” On WordPress: Why Does This Error Occur?
At the core of this issue is a misconfiguration of redirects. The error “ERR_TOO_MANY_REDIRECTS” usually occurs in WordPress due to a misconfigured redirection function, whereby your site ends up redirecting visitors to a URL that is turning them back to the referring URL. The user’s browser is trapped between two pages hence returning the error.
The redirect function is a useful WordPress capability that site owners use as part of the SEO friendly URL structure within WordPress. Popular WordPress plugins like WordPress SEO, WordPress SSL, and cache plugins all use redirects. Redirects are a useful web construct because they help make your web pages available on other website URLs.
Properly configured ‘redirects’ are meant to lead to better user experience as well as SEO impact. Let’s cite an example to make all this clearer. If you want visitors to be redirected to land on your new ‘Luxury homes’ landing page from your old ‘Real estate’ landing page, a properly configured redirection function will allow this to happen with success.
But, what happens if the redirects are not configured correctly? What could go wrong and trigger the error “ERR_TOO_MANY_REDIRECTS”? Due to redirects’ wrong configuration, the redirect function could lead to multiple different URLs instead of the one you want. In such a case, the browser gives up and returns the error.
On the other hand, and more commonly so, your browser could get caught in an infinite redirection loop. The infinite redirection loop and hence the error occurs when for example, the ‘Real estate’ landing page redirects to the ‘Luxury homes’ landing page, yet due to the misconfiguration, the ‘Luxury homes’ page also redirects to the ‘Real estate’ page, which in turn redirects to the luxury homes’ page. As a result, the browser gets confused, gives up, and returns the error “ERR_TOO_MANY_REDIRECTS.”
How To Fix “ERR_TOO_MANY_REDIRECTS” On WordPress?
Checking your plugins and the site’s settings are popular areas to troubleshoot to fix the issue.
Let’s look at the different methods on how to fix “ERR_TOO_MANY_REDIRECTS” on WordPress. Starting from the first, each subsequent method is the next recommended solution if the prior way doesn’t work.
Method 1: Update the Settings of Your URLs
It’s quite common for the Err_Too_Many_Redirects error to be caused by problematic URL settings. By checking your current URL settings in ‘Settings’> ‘General‘ and making any necessary updations, you can resolve the error.
The ‘WordPress Address (URL)’ is the location of all your WordPress site files. The ‘Site Address (URL)’ is the homepage users are directed to. Typically both these URLs are identical, which is why in most cases, any difference in the two can be the source of the error.
# Here are some tips on ensuring the URLs are set correctly:
- Both URLs may be identical, yet removing www at the beginning of each and keeping them as https://salvattore.com (i.e., your site URL) and then reloading the site might fix the issue ERR_TOO_MANY_REDIRECTS.
- Adding www at the beginning of each URL (if it’s currently not there) and keeping them as https://salvattore.com and then reloading the site might fix the issue ERR_TOO_MANY_REDIRECTS.
- If only one of the URLs has www at the beginning, then ensure either both have it, or neither has it so that they’re identical.
- Change your SSL (secure protocol) certificate to an HTTP (standard protocol) and see if the error gets rectified. If, by doing so, the error disappears, then set up your SSL certificate correctly before using the secure protocol.
But, what if, like many other WordPress errors, this one doesn’t allow you to access your Admin area? How would you update the URLs then?
The simple steps below show you how to match the WordPress and Site URLs without having access to your Admin dashboard:
Step 1 – Make sure you have a backup of your entire website.
Step 2 – Edit your wp-config.php file by connecting to your server via retrieving your FTP credentials (i.e., hostname (server name), the username (your site’s domain name), password (site’s password), port (by default it’s 21), and launching the connection. Note, in this example, we’re using FileZilla as our choice of FTP client.
Step 3 – Once you’re connected to your server, navigate to the public_html directory and open it.
Step 4 – Locate your ‘wp-config.php’ file, right-click it, and choose the ‘View/Edit’ option:
Step 5 – Look for the following code, and ensure the URLs match. In the case of non-matching URLs, make appropriate changes. Remember to change the URL to your site URL.
define (‘WP_SITEURL’, ‘https://example.com’);
define (‘WP_HOME’, ‘https://example.com’);
If you don’t see the above lines of code in your wp-config.php file, look for the line reading “That’s all, stop editing! Happy publishing,” and add the two lines of code above it.
Step 6 – Once done, save and close the file. A prompt by FileZilla asking you to re-upload wp-config.php to your server will appear.
Step 7 – Select ‘Yes’ and then close the server connection. Try reloading your site to check if the “ERR_TOO_MANY_REDIRECTS” is resolved.
Did method number 1 fix the error? Don’t worry if it hasn’t. There are three more popular methods to go in this article. Once you’re through troubleshooting with the help of this article, you may want to check out our simple guide on “how to install WordPress via FTP?”
Method 2: Clear Browser Cache & Cookies
If updating your URLs’ settings hasn’t got rid of the error, clearing your browser cache and cookies might do the trick. And if even that simple fix doesn’t work, then you can move on to the next suggested method.
# Here’s how to clear browser cache and cookies in Chrome:
Step 1 – Go to ‘Menu’> ‘Settings.’
Step 2 – Once in ‘Settings,’ navigate down to ‘Advanced.’
Step 3 – Go to the ‘Privacy and security’ section, click on ‘Clear browsing data.’
Step 4 – Select’ cache and cookies’, select the duration, and then click on ‘Clear Data.’
# Here’s how to clear browser cache and cookies in Mozilla Firefox:
Step 1 – Access the ‘settings’ page by clicking on the gear icon (located at the top right).
Step 2 – Select ‘Privacy & Security’ and click ‘Clear Data.’
Step 3 – Select ‘cookies and cache’ and then click on ‘Clear.’
Now, try reloading your site to see if the error persists. If the error appears, move on to method 3.
Method 3: Plugin Issues & The .htaccess File
If neither of the above two methods resolves the issue, it’s time to check your plugins! Many WordPress plugins make use of redirection techniques. Moreover, some of your plugins may be outdated or in conflict with one another.
Disable all your installed plugins and then try to access your site to determine if the issue is indeed plugin related.
How to deactivate all your plugins after you’ve encountered this error depends on whether or not you still have access to your dashboard.
# If you have access to your dashboard, you can ‘Deactivate’ in bulk by going to:
‘Plugins’> ‘Installed Plugins’ (in your dashboard)
# If you no longer have access to your dashboard, here’s how you can deactivate the plugins via FTP:
Step 1 – Connect to the server via your FTP credentials.
Step 2 – Once you’ve established the server’s connection, navigate to the root WordPress directory called ‘public_html.’
Step 3 – Open the wp-content subdirectory and right-click on the ‘plugins’ folder there.
Step 4 – Click on the ‘Rename’ option in the dropdown list.
Step 5 – Rename the plugins folder to “plugins_disable” or “plugins_deactivated” to deactivate all plugins in one go.
Step 6 – Rename the plugins_disable folder back to its original name “plugins.” Then refresh your WordPress site and access your wp-admin area.
Step 7 – Once all the plugins are deactivated, it’s time to disable and replace the .htaccess file. To do this, download the .htaccess file as a backup via FTP through the root directory of your website.
Step 8 – Once the .htaccess file is downloaded, delete the file from your server, and then try to access your site.
This way, a new .htaccess file gets regenerated by the server and should fix the issue. If the error ERR_TOO_MANY_REDIRECTS is gone, treat this as a confirmation that a plugin was indeed causing the error.
If the error hasn’t gone away and you cannot access the site, you may want to re-upload your backup .htaccess file and move on to Method 4; otherwise, move on to step 9 below.
Step 9 – Next, to find the problematic plugin, you need to reactivate the plugins turn-by-turn. There are two ways of reactivating each plugin:
- Click on the ‘Activate’ option in your dashboard Plugins list.
- Change the file name back via FTP.
After reactivating each plugin, it’s recommended you access the site to see if the error ERR_TOO_MANY_REDIRECTS persists. If it continues, you’ll know that the plugin most recently reactivated is the likely bad plugin that should be permanently deleted.
For further details on how to find and delete a problematic plugin, also read our tutorial on the topic ‘How To Fix “503 Service Temporarily Unavailable” On WordPress?‘
Method 4: Contact Your Webhost To Check Your Nginx Configuration File
If none of the above methods has resolved the issue, it’s time to ask yourself: Does my Webhost use Nginx? If yes, or even if you don’t know the answer, by now, your server’s configuration is likely the reason behind the “ERR_TOO_MANY_REDIRECTS” alert.
Server issues need to be sorted out at the server end. Hence, the support team of your hosting provider should be contacted for checking the Nginx configuration file. Moreover, your Webhost has enough control over how the URL and redirects of your site function. They should pinpoint the source of the issue and solve the problem if it’s from their end.
The above methods are the most popular solutions to the question: how to fix ERR_TOO_MANY__REDIRECTS on WordPress? These methods are tried and tested to work in most situations. Did these methods work for you? If you have additional tricks and tips to share, use the comments section below!
Are you on the lookout to replace your existing WordPress Admin theme? If yes, you may want one that is more soothing and simpler to be more motivated and creative. Alternatively, you may select one that gives you complete customization control. Read our article on the ‘10 Best WordPress Administration (WP Admin) Themes‘ and explore the possibilities!
Joe has been using WordPress for many years, building many different types of websites along the way. Joe now enjoys working as a freelance content writer and is available for hire.