How do browsers (in general) detect a redirect loop? And how big a chain can they handle? It is kind of easy to detect a two way redirect loop, but what about a chain of 4, or 5? – Is it just an array algorithm which will work on a chain of any length?
Share
It’s even simpler than that – most browsers I’ve seen will simply give up after following a set maximum number of redirects. For instance, if you have a rewrite rule which always adds “x” to the end of the URL:
Chrome will give up once it hits
/xxxxxxxxxxxxxxxxxxxxx– 21 redirects total.