What does “too many redirects” mean?
Error 310 or “too many redirects” is a typical WordPress issue caused by improper use of URL redirects. To create SEO friendly structure, WordPress has enabled URL redirection function which many webmasters use to redirect the old URL to a new one with a plugin. But if the old URL is not redirected to a unique location, the 310 error will appear.
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.
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.
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.
Disable The .htaccess File
Sometimes, the .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.
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.
How We Can change the website URL without having access to the admin area?
If too many redirects occurred and you do not have access to the WordPress admin area, do not worry, there is still a way to solve it. The setting changes that we covered can be updated by defining them in the wp-config.php file.
All you have to do is to connect your website using an FTP client and find the wp-config.php file in your site’s root directory. Then, download and edit the file using a text editor (we suggest Notepad).
Add these two lines and don’t forget to replace dontredirect.com with your domain:
Apply and save changes, and upload the file back to the web server. After all that is done, try to access your site. If you still can not reach it and there were too many redirects occurring, then try adding the “www” prefix to your domain.
What is a Webpage Redirect Loop?
When you redirect one URL to another —this should be a linear flow. But at times we unknowingly complicate the matter by doing too many redirects and thereby inadvertently causing a loop.
Redirect loop is like a situation wherein “A points to B and B points back to A”. Such a redirection will keep browser in an infinite loop and the webpage will never be displayed. In old times, such redirect or infinite loops used to result in a hung browser.
Thankfully, modern browsers are able to detect such redirect loops and they break the cycle by displaying an error message: “This Webpage has a Redirect Loop”.
How to Solve This Webpage has a Redirect Loop Problem
Browsers, like Google Chrome and Mozilla Firefox, show this error as:
“Error 310 (net::ERR_TOO_MANY_REDIRECTS): there were too many redirects”.
This problem may be caused either at the client end or the server end. If there is no redirection loop on the server side, the problem is likely to be solved just by deleting cookies.
Solve Problem by Deleting Cookies
Open the browser that is showing this error. Here we will take Google Chrome as example.
Click on the menu button given in the top-right corner.
From the resulting drop-down menu, select Settings
Chrome will open your personal browser settings in a new tab
Type “cookies” in the search box. Chrome will look for all the setting options where the word “cookies” appear.
Click on Clear browsing data… button. A new box will come up. Now select Cookies and other site and plug-in data.
Click the Clear browsing data button.
Close your browser and start it again.
Now go to the URL that was showing the redirect loop error. The error should be gone now and you should be able to view the desired webpage.
Check Your htaccess File
After deleting cookies, if the error is still there, it is most likely a problem with the webpage and as a visitor you can’t do anything about it.
If you’re a visitor, you can try to visit the same URL in another browser. If more than one browsers are showing the “This Webpage has a Redirect Loop” error, it is most likely to be a server side issue.
If you’re a developer who is facing redirect loop problem, I would recommend that first of all you check your .htaccess file. Look for any cyclic or too many redirection codes. Try to keep your htaccess file in a clean state because if this file will become confusing, it can really break your website.