I put the code in near the top, does it matter where it goes? I go the same message on the page. Here is the log error:
10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer: img.php