Request exceeded the limit of 10 internal redirects due to probable configuration error

I’m getting the following error in my CakePHP application:

Request exceeded the limit of 10 internal redirects due to probable configuration error. Use ‘LimitInternalRecursion’ to increase the limit if necessary. Use ‘LogLevel debug’ to get a backtrace., referer: http://projectname.dev/

My .htaccess in the root folder, looks like this:

<IfModule mod_rewrite.c>
   RewriteEngine on
   RewriteRule    ^$ app/webroot/    [L]
   RewriteRule    (.*) app/webroot/\ [L]
</IfModule>

and in the app folder:

<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteRule    ^$    webroot/    [L]
    RewriteRule    (.*) webroot/\    [L]
</IfModule>

and in the webroot folder:

<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /projectname
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
</IfModule>

 

Un sitio/cliente reportaba constantes errores 505 “internal server errors” verificando el error log vimos que este mostraba este error:

[error] [client 33.33.33.33] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.

Esto indica a grandes razgos que se está exediendo el límite máximo de redirecciones internas disponibles.

La solución es sencilla, editamos el .htaccess del cliente en cuestión y colocamos:

RewriteCond %{ENV:REDIRECT_STATUS} 100
RewriteRule .* – [L]

 

 

http://book.cakephp.org/2.0/en/getting-started.html

http://soyadmin.com/2014/12/solucion-a-request-exceeded-the-limit-of-10-internal-redirects-due-to-probable-configuration-error/

https://wordpress.org/support/topic/constant-request-exceeded-the-limit-of-10-internal-redirects-1

http://stackoverflow.com/questions/15850845/request-exceeded-the-limit-of-10-internal-redirects-due-to-probable-configuratio

http://stackoverflow.com/questions/16490215/apache-htaccess-request-exceeded-the-limit-of-10-internal-redirects-due-to-pro

Deixe um comentário