Have you never noticed the err_too_many_redirects message appearing on your screen? Too many redirects is actually a quite common error so it is important to know how to fix this issue.
If you are running a self-hosted WordPress website, you already know that it comes with many benefits. However, you might have noticed that it also comes with a few errors that the beginners might find particularly problematic.
When running the wpDataTables website, we also faced some common errors like the internal servers issues, the white screen of death, and some smaller issues.
These can cause you a lot of stress down the road. So it is important to take care of these problems in a timely manner. We will teach you how.
Let’s just point out that if you are using Firefox, the message will display like this:
“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.” Err too many redirects is commonly known as the 310 error, but sometimes it can appear as the famous “404 page not found”.
So what does the too many redirects error mean? It indicates the browser does not know where it is supposed to go or cannot reach your site.
Table of Contents:
- What does too many redirects mean?
- WordPress too many redirects: Fix it!
- Can I change the website URL without having access to the admin area?
- Most common solutions
- Delete Cookies on That Specific Site
- Clear Server, Proxy, and Browser Cache
- Check Third-Party Services
- Disable Plugins
- Disable The .htaccess File
- Nginx Config
What does too many redirects mean?
The name suggests that this error means the browser has redirected you too many times. But what does it mean in practice?
Basically, the reason error too many redirects occurs is something the website to go into an infinite redirection loop. The site is stuck (such as URL 1 points to URL 2 and URL 2 points back to URL 1, or the domain has redirected too many times). Unfortunately, unlike most of the errors, too many redirects WordPress is an error that rarely solves itself and you need to know how to fix it.
WordPress too many redirects: Fix it!
The most common issue that people usually come across with err_too_many_redirects WordPress is when a user has the wrong URL in the address URL or site address URL settings.
For instance, your site’s URL is “http://www.wpdatatables.com”, and you click on “Settings”, then “General”, and set it to “http://wpdatatables.com”. Most of the web hosts will allow you to choose between having the “www” prefix in your domain name or not.
If you chose to go with the “www” prefix, typing “http://wpdatatables.com” in your WordPress settings would result in too many redirects. The same thing would happen if you opted for not having the prefix and typed “http://www.wpdatatables.com” in your settings.
This page would find itself in a redirect loop; the user would come “http://wpdatatables.com” and the server’s configuration would direct him to “http://www.wpdatatables.com”, which would redirect him back in an endless loop.
It’s also possible to get an err_too_many_redirects WordPress error if you change your permalink settings. If you don’t remember to incorporate the right 301 redirects, this could cause the same issue.
Keep in mind that if your website was working fine for a while and the too many redirects Chrome error occurred out of nowhere, you should contact your web host because the configuration issue might be at their end. With that in mind, always choose a reliable WordPress hosting provider and make sure that you create redirects correctly.
Can I change the website URL without having access to the admin area?
If too many redirects occurred, there is a way for you to solve the issue even without having access to the admin area. The setting changes we mentioned before can be updated by defining them in the wp-config.php file.
You will have to connect your website using an FTP client and find the wp-config.php file in your website’s root directory. From there, download and edit the file using a simple text editor.
Add these two lines and don’t forget to replace wpdatatables.com with your domain:
Apply and save changes, and upload the file back to the web server. Once you have covered all these steps, you should be able to access your website. If your browser, for example, Safari cannot open the page because too many redirects occurred again, try adding the “www” prefix to your domain.
Most common solutions
A common solution for err_too_many_redirects Chrome and Mozilla is to clear your cookies because they can sometimes contain faulty data which results in too many HTTP redirects. You can try solving the issue this way even when you find yourself in a Chrome redirect loop on the website you don’t own.
Since cookies often retain certain settings and the logged in status on websites, we recommend that you delete the cookies only on the website that is having the problem rather than all cookies altogether.
Clear Server, Proxy, and Browser Cache
When trying to figure out how do you fix too many redirects, keep in mind that the redirect loops can be cached. A smart thing to do when solving the net::err_too_many_redirects would be to clear the cache on your website, the server, third-party proxy services, and even your browser if necessary.
Check Third-Party Services
The reverse-proxy services such as Cloudflare can also often result in the website redirected, especially when their Flexible SSL option is enabled and you already have an SSL certificate installed with your WordPress host.
The reason Chrome too many redirects happen, in this case, is that all requests to your hosting server are sent over HTTP. Your host server probably has a redirect in place from HTTP to HTTPS which results in WordPress err_too_many_redirects.
The outdated plugins, as well as the plugins that don’t function properly, can also cause Chrome err_too_many_redirects. Try disabling them temporarily and check if the issue is solved.
You can do this in no time by simply accessing the File Manager, locating the WP-content folder, finding the plugins folder, and rename it. You need to rename the folder in question to plugins_backup. Save the changes made and try to access your website.
If you can access the website now, it means that one or more plugins on your website were outdated. In this case, you can detect which plugin causes the error to occur by renaming them one-by-one until you locate the faulty one. Once you do that and remove the outdated plugins, don’t forget to rename your folder back to Plugins.
Disable The .htaccess File
Sometimes, .htaccess file can also cause err too many redirects in Chrome, Firefox, or Safari. If this happens, you need to access the File Manager folder, select the .htaccess file, and choose the rename option. You can rename your file to anything and then save the changes.
The other option is to restore this file by taking the backup and deleting the current version. The file will be generated automatically and the site should be working properly if the .htaccess file was the issue.
If your host uses Nginx, things can get a little bit tricky and the best thing to do would be to contact the host and have them check your config file. They should be able to quickly detect anything that caused that there were too many redirects.
Ending thoughts on fixing the too many redirects issue
Too many redirects is a common issue that you will probably face from time to time. So how to fix too many redirects? It all starts with detecting what caused your redirecting error. The fixes are very quick and simple once you know what needs fixing. Check out the above mention methods to find your err_too_many_redirects fix.
Using a managed WordPress hosting can help to avoid this and other technical issues, such as WordPress stuck in maintenance mode. Websites created on managed hostings are typically configured in a couple of clicks, so problems like that do not happen in the first place; and even if something happens, the support team resolves such issues within minutes without you having to dig through web server config files. Kinsta is one of the best WordPress managed hosting providers, between other features they backup the website daily and allow quick recovery, have pre-production staging environments, and can automate WP core and plugin updates and maintenance. It is currently used by many thousands of websites, among which there are many large ones like Intuit, Buffer, TripAdvisor, and others.
If you enjoyed reading this article about too many redirects, you should also read these:
- Best WordPress Download Manager Plugins
- WordPress migration plugin options to move your website
- 12 Tips for Creating a Successful WordPress Premium Plugin or Theme