How can I catch ERR_TOO_MANY_REDIRECTS with .htaccess or even in PHP and redirect to 404 page?
Print: http://prntscr.com/j0xh1m
It's possible? Thanks anyway
ERR_TOO_MANY_REDIRECTS
is a browser error, you cannot catch it at server level. You may only try to detect whether the user has fallen into a redirect loop and display your error page before browser will block redirections.
But correct solution is fixing your app and avoid redirection loops in the first place.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.