In Chrome, how many redirects are “too many”?

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.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)