Internet is an interconnected system of billions of webpages. Although it is not advisable to change the URL of a webpage —but sometimes it become necessary to do redirect from one URL to another URL. And, at times, this innocuous redirection causes an annoying problem that reads “This Webpage has a redirect loop”. Technically, by the browsers like Chrome and Mozilla Firefox, this error is shown as “Error 310 (net::ERR_TOO_MANY_REDIRECTS): there were too many redirects”. Sometimes this error comes up even when we try to access our Gmail account.
Today I will tell you how to solve the redirect loop problem. Solution for this problem is not at all difficult. Let’s begin with understanding the concept of webpage redirection and why do redirect loops occur.
Let’s assume you are running a website or a blog on a particular domain name. Now because of some unavoidable circumstances, you have to buy a new domain name and shift your website onto the new address. Obviously, this will cause change in the URLs of your webpages.
Google does not like a change in the URL and also your visitors will not be able to easily reach the new address. To get around this problem, a 301 redirect code is used which makes old URL automatically redirect to a new URL. Such a redirection can be done using an .htaccess file.
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”.
It’s not that this error comes only when there is a cyclic loop. If a webpage has too many redirects (for example, A points to B; B points to C; C points to D… and so on); in such a situation as well browsers will show the redirect loop error.
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.
BONUS TIP: If you’re having login problem on a website, enabling cookies on your browser might be useful.
I hope this information would help you in solving the problem. If you have any queries, please feel free to let me know through the comments section on this article. I will try to assist you. Thank you for using TechWelkin.
I had this problem, couldn’t log in and could only access the Support page by following a direct link from a google page. I thought it was an issue related to my modem going bad, it wasn’t. I was finally able to access a Support function for banned accounts and this was their reply.
Thank you for your report about the support page access problem. We do apologize for any issues. There were issues with access due to a past email change that wasn’t updated on the support end, but it should be resolved now and access fixed. Please re-log and check again. If you have any other issues, please let us know.
I spent 3 days looking for a solution on multiple sites, setting Recovery points, trying many Fixit solutions and this guy fixed it in less than 2 hours from the time I contacted Support. Hope this helps some people.
I am trying to use Think with Google’s Test My Site tool, but the button won’t respond and the tool is refusing to test squat. Says something on Inspect about uncaught type error. I need this tool to work for me.
I have tried clearing cookies and none worked. I suspect that fixing the .htaccess file might do it, but i dont know how to go about that. Can you give me tips please.
I’m trying to get into a site on google chrome but it is giving me the too many redirects message. I tried deleting the cookies and cache and going incognito, but nothing is working. When I went incognito mode, it opened up the website but when I tried to log in, it went to the same error message. So I don’t know what to do.
My concern – if I clear cookies, will I lose useful, time-saving cookies like saved passwords to low-security websites? Or saved user names? That could result in a lot of wasted time.
Related – is there a way to clear most cookies but cherry-pick the sites where you want them saved?
Thanks!
Yes, it is possible to remove selected cookies. All the prominent browsers allow you to do so. For example, in Chrome follow this path: Settings > Content settings > All cookies and site data
Hi Lalit,
I have the same problem, but I am not a geek, so I can not show you exactly what is the issue. The website is a just an ordinary shopping site, and I have too many redirects. I’ve done all you have said regarding the cookies, but it didn’t work. I am lost, please help me :)
Without any specific input, it is not possible to further analyze the problem. It would be better if you find a tech-savvy person around you and get the problem solved.
Hi there,
I am trying to access a website, but the redirect error keeps appearing. I’ve cleared cookies, and other browsers and computers have the same issue. I know that this is most likely a server issue now, but is it common for a website to be unreachable for several months?
According to various other websites, the website I’m trying to reach is accessible. Do you have any ideas on a fix? Thanks
Hi Lalit, I am trying to access Kotak Bank’s netbanking page from my home network and its giving me the “ERR_TOO_MANY_REDIRECTS” error. Whereas when I use my mobile data to access the webpage, everything comes up as expected. Can you please help in debugging this issue?
Thanks,
Prashant
Hi when I tried to log into yahoo, the following error is displayed in Chrome. I have tried to delete cookies and enabled cookies, but still the problem exist. please help to resolve it. i can login in my mobile.
This page isn’t working
mg.mail.yahoo.com redirected you too many times.
Try clearing your cookies.
ERR_TOO_MANY_REDIRECTS
They all say the same thing clear cache clear cookies never anything else. Obviously they have no answer and so they repeat each other. I can do nothing. First google sits and redirects the minute I type in my email. It would do it for 24 hours- a week- a month. Never stop until I end it.
Then too many redirects try again, try again try again. Is there any company that I can switch to that never has all these damn problems every day with only clear your, cache clear your cookies. Restart, reboot whatever hell with it all.
For anyone struggling with this issue and the above not working then maybe due to the issue I have been having.
I have had tons of redirect issues across various ecommerce platforms and tried different seo settings, .htaccess settings etc. after clearing the .htaccess and still getting the same problem I just logged into cpanel for the domain I am currently having the issue with and turned off Mod Security and instantly the problem was fixed. I will have to go through all the settings at some point to try and isolate which setting causes this issue but at least for now while trying to develop this new site to replace the current 3Dcart based one I can work without the issue.
Hello John, I’m having the same issue, did you ever figure out what was the problem? Thanks in advance
One thing you didn’t mention is if you have an SEO plugin like Yoast it keeps records of slug changes and redirects. I had this problem because I changed the slug back to an older value. E.g. slug changed from “fred” to “harry”, then changed back to “fred”. My solution: go into the redirect settings tab and remove the redirect entries for both fred->harry and harry->fred, et voila!
HTH somebody else too.
worked like charm..i deleted redirect and website got back on!
worked a charm!
I had a problem, I’m working on a site that displays an error message ERR_TOO_MANY_REDIRECTS. When I check the contents of the .htaccess file again no problem, and I check it first on the local server result is no problem. What because it was blocked by Security Malware – Sucuri?
Works for me and its amazing that you can go to the browser website and they don’t tell you to do this instead they want to ask question about your system.
Thanks for your great tips.after moved my server i fall this problem and after reading your article i solved.
Thank you very much! Ctrl Shift N worked for me after an unsuccessful try with deleted cookies.
Totally worked for me, thanks! (Surface 4 Pro user, Windows 10)
Hello
I tried your steps many times and I still get the error code.. the link from the Web page works from my desktop but not mobile devices.. the same error message appears..
plus.google.com redirected you too many times.
ERR_TOO_MANY_REDIRECTS
Please help
Same happened to me. But I heard if you switch to incognito mode, that will help. (CTR+SHIFT+N) good luck!
That solves my problem!! thanks!! Clearing cookie doesn’t really work for me.
Hi, we are having the same problem with a web.config file, we have recently paid for a SSL certificate for our site and everything works fine apart from when we add the redirect rule into the web.config file:
and then we get a redirect loop, the page has the correct title including the green padlock and the right protocol ‘https’ but never loads. We have no server side access and our support are absolutely useless (three weeks without a response).
Any ideas would be really welcome. Thanks.
I wanted to also give my feedback, i have been struggling with this issue and finally found out what it caused, so here is what i had:
open: = works
open: http://www.example.com = redirect loop error
to fix this, i went into .htaccess and added this here:
# BEGIN WordPress
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.domain.com$
RewriteRule ^(.*)$ “http://domain.com/$1” [R=301,L]
RewriteBase /
RewriteRule ^index.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
and it worked.
but be careful, make sure your DNS records are like this:
* IN A 12.345.678.9
Thanks for your feedback Mikula! Yes, wrong code in .htaccess often causes this problem.
But Where is this .htaccess file located in windows???
The above solution is for WordPress users.
Where in the heck is the .htaccess file? I’ve turned on the option to see all hidden files, I used the search tool Everything and only find this file in my Code library in my PHP folder.
.htaccess file may or may not already exist. If it is not there, you will have to create it. But, I must warn, you should work with .htaccess very carefully as wrong code in this file can cause troubles that may turn out to be difficult to decipher for those who don’t know much about how this file functions.
Lalit, you can locate this .htaccess file in your C-Panel’s File Manager in public/html. This file is hidden so once your File Manager loads, click on Settings and on Show Hidden Files. Click on Save and you will be able to view the file.
exactly, this also worked for me, thanks
Hey Mikula Beutl, you are a saviour. This helped me out a lot. Thanks.
Same thing here on three browsers at the same time. Deleting cookies does not solve of course and the troubleshooter is useless, in fact I have never seen a problem that the troubleshooter was able to solve!
Could a WiFi extender cause this issue? when I’m using WiFi from my router i am able to browse satisfactorily; however, when i move to the part of my house with poor connectivity – hence the WiFi extender – it all goes wrong. It worked OK for a while and then dropped out. i tried using the alternate set up method – without WPS – to no avail.
Yes Stuart, I guess logically WiFi extender could cause such problem -but then it should affect all the websites. Finding the root cause of loop redirection takes research as many components work together to display a webpage in a browser. By research, we need to figure out which one of the component is causing infinite redirection.
Perfect! Thanks!!!!!!!
I Had this issue, but it was my website host security protocol blocking my IP address, as it looked like suspicious activity to them I was updating one of my clients WordPress websites & testing a few things and I just got the mentioned ERR redirect loop message.
I contacted my host and to their credit replied within minutes to advise of the block, they added my IP address to their white list (allowed list) and all was fine.
So, always try your host support if you are an owner of a site & you have a similar story to mine.
Hi Lalit,
I have website which i have to open according to countries.
Suppose I have to open abc.com in India, Nepal, Srilanka and Bangladesh and in rest of the world i have to open the web URL like abc.com/Global.
Could you provide me any help regarding this issue. while i am trying the solution it is throwing an error for too many redirects.
Thanks
Shailendra
One of the ways to do this is to use mod_geoip module of Apache. You can get this module installed and then configure htaccess as you want.
Hello sir
I use Airtel dongle to access Internet. When I open Google Chrome or Internet Explorer and I type the website address in address bar; the website gets redirected to the Airtel offer page.
Rahul, such problems are common and there is no fixed solution for these. Solution would depend on how exactly such redirection is happening. In general, you may try uninstalling your web browsers and install them again.
Hi,
I wondered if you could help; on some devices this website is on a constant redirect; it doesn’t come up with the error code you’ve mentioned. I’ve cleared the cache and cookies on the devices but it’s still happening. The website is with WordPress and they haven’t helped at all. I therefore also don’t have much access to the ‘workings’ of the website. Any advice would be greatly appreciated. Thanks
Hi Charlotte, because your blog is hosted on WordPress.com, I am afraid you will have to contact their support team for this. The issue is probably beyond the rights of a user. For example, You can’t see or tweak HTACCESS for your blog. So, my suggestion would be that you contact the WordPress support team.
I appreciate the effort you put into this, but do you really think clearing all cookies is a good enough answer?
Could you be specific about which to remove so as not to inconvenience people by removing cookies which are nothing to do with this problem
That’s a good suggestion. But for most common users of Internet, locating a specific cookie will be difficult. Those who are more tech savvy, they can definitely look into the list of cookies and delete all the cookies related to the website that is facing redirect loop issues.
Thank you so so much, this sorted the problem
The problem is on my school’s website. I go to the log on page and every 5-10th time I load the page it’ll give me a redirect loop. I’ll manually clear all the cookies pertaining to their website and all will be good for 5-10 more times until I get another redirect loop error. I’m really glad I thought of just deleting their cookies because at first I was deleting them all and that was a pain in my butt when all my bank and business accounts always had me verify who I was. So is this a problem with my Mac Chrome or can the school do something about it. If it’s them, I would like to email tech support and see if I can convince them to fix it.
Hi Katie, thank you for your message. Well, first of all, I don’t think it’s a problem with your Mac Chrome browser. Most probably the cookie is creating problem. Tech support of your school should look into your problem and they need not any convincing as the problem is pretty much there! I suggest you contact the tech support.
Hi Lalit. My issue is that I have created an account on webmaster tools and completed the verification. I then created the robots.txt file and place it in my server. When I loaded the website with /robots.txt to view it I get “This website has a Redirect Loop..to many errors. I came across your resolution but having cleared the cookies I still get the same message. Have you come across this particular problem before? Richard
Hi Richard, try opening the robots.txt file on some other computer. Also, if possible, could you please give me the URL of your robots.txt so that I can reproduce the problem you’re facing.
hello Lalit, i am able to open my website as admin in mumbai but unable to open in rajasthan even after deleting cookies.
Pls help me as soon as possible I am in serious trouble.
Well, there could be any number of reasons why you’re not able to open a website. I can not answer without actually seeing the faulty setup. However, one of the probability is that your ISP, local router, local firewall etc. in Rajasthan might be blocking your website. You’ll have to look deeper into the issue.
Hi,
I am facing this problem only from one system . From rest all systems I am able to access the website.
In such a case, it is most likely a cookie related problem. You may want to go and manually delete cookies from the folder where Chrome stores them.
I am facing same problem with one of website. I did all these things but still getting same error. How to solve this problem? What should I do? tell me buddy.
If deleting cookies doesn’t help, then most probably it all depends on your .htaccess code. Because different .htaccess files have different codes, there can not be an off the shelf solution. You should get your code checked from an expert.
This didn’t work for me. IT also did the same thing. Do you have other ways to solve it?
If clearing cookies is of no help, then you must check your .htaccess file and ensure that there are no redirection problems in there.
Sharing is caring. Great Solution. I have switched to WordPress blog from Blogger. Everything was fine but I was facing an issue of redirection of site to previous blog. After reading this article I have solved my problem of redirection issue. Thanks!!!!
You’re welcome AmanDeep. Stay tuned with TechWelkin! Looking forward to hear more from you.
Thank you!
You’re welcome Ambi. Hope to hear more from you on TechWelkin!
Mine is happening while working on my local drive. I have a prestashop website online, and backed it up so i can edit and upload back. But now i finished restoring to my computer, tried to view but it brings “This webpage has a redirect loop ERR_TOO_MANY_REDIRECTS”
I have tried clearing cookies and none worked. I suspect that fixing the .htaccess file might do it, but i dont know how to go about that. Can you give me tips please.
Hi Emmanuel, yes, it appears to be a case multiple redirects due to .htaccess file. The exact solution depends on the exact problem. But I have written a couple of articles on TechWelkin regarding .htaccess file. These articles might be of help to you. Just search for htaccess.
Bingo! Chrome Settings Clear cookies and other site and browsing data worked for me.
I am getting the same error only on chrome. The application works in Firefox