Often, when a script has a redirect loop we get an error in Google Chrome that says
Error 310 (net::ERR_TOO_MANY_REDIRECTS): There were too many redirects.
How many redirects are too many?
There are no limits in using 301 redirects on a site. You can implement more than 100k of 301 redirects without getting any penalty. But: Too many 301 redirects put unnecessary load on the server and reduce speed. Try to reduce direct redirects by using rules.
The reason you see the “too many redirects” error is because your website has been set up in a way that keeps redirecting it between different web addresses. When your browser tries to load your site, it goes back and forth between those web addresses in a way that will never complete — a redirect loop.
Google Chrome 17.0.963.56 allows a maximum of 20 redirects, as tested with this PHP script:
<?php $redirect = (isset($_GET['redirect'])) ? $_GET['redirect'] : 0; header("Location: redirects.php?redirect=" . ($redirect + 1)); ?>
Chrome aborts with error 310
when trying to open redirects.php?redirect=21
, which means that the first 20
redirects were successful.
Tested on Win 7 64bit
Version: 49
↷ 80.0.3987.132 (Official Build)
, 19 redirectsVersion: 49
↷ 88.0.4306.2 (Official Build)
, 19 redirectsversion: 43
↷ 74
, 20 redirectsversion: 43
↷ 74
, 20 redirects67.0.4
, endless loop! version: 28
, ↷ 65.0.3467.62
19 redirectsversion: 5.1.7
, 16 redirectsversion: 8
11 redirects via webpagetest.orgversion: 9
121 redirects via webpagetest.orgversion: 10
121 redirects via webpagetest.orgversion: 11.48.17134.0
110 redirectsversion: 42.17134.1.0
20 redirectsIf you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With