{"id":3520,"date":"2015-04-17T19:53:07","date_gmt":"2015-04-17T19:53:07","guid":{"rendered":"http:\/\/www.deuzebranaweb.com.br\/?p=3520"},"modified":"2015-04-17T19:53:07","modified_gmt":"2015-04-17T19:53:07","slug":"request-exceeded-the-limit-of-10-internal-redirects-due-to-probable-configuration-error","status":"publish","type":"post","link":"https:\/\/blog.deuzebranaweb.com.br\/index.php\/2015\/04\/17\/request-exceeded-the-limit-of-10-internal-redirects-due-to-probable-configuration-error\/","title":{"rendered":"Request exceeded the limit of 10 internal redirects due to probable configuration error"},"content":{"rendered":"<p>I&#8217;m getting the following error in my CakePHP application:<\/p>\n<p>Request exceeded the limit of 10 internal redirects due to probable configuration error. Use &#8216;LimitInternalRecursion&#8217; to increase the limit if necessary. Use &#8216;LogLevel debug&#8217; to get a backtrace., referer: <a href=\"http:\/\/projectname.dev\/\">http:\/\/projectname.dev\/<\/a><\/p>\n<p>My .htaccess in the root folder, looks like this:<\/p>\n<pre class=\"default prettyprint prettyprinted\"><code><span class=\"tag\">&lt;IfModule<\/span> <span class=\"atn\">mod_rewrite<\/span><span class=\"pln\">.<\/span><span class=\"atn\">c<\/span><span class=\"tag\">&gt;<\/span><span class=\"pln\">\n   RewriteEngine on\n   RewriteRule    ^$ app\/webroot\/    [L]\n   RewriteRule    (.*) app\/webroot\/$1 [L]\n<\/span><span class=\"tag\">&lt;\/IfModule&gt;<\/span><\/code><\/pre>\n<p>and in the app folder:<\/p>\n<pre class=\"default prettyprint prettyprinted\"><code><span class=\"tag\">&lt;IfModule<\/span> <span class=\"atn\">mod_rewrite<\/span><span class=\"pln\">.<\/span><span class=\"atn\">c<\/span><span class=\"tag\">&gt;<\/span><span class=\"pln\">\n    RewriteEngine on\n    RewriteRule    ^$    webroot\/    [L]\n    RewriteRule    (.*) webroot\/$1    [L]\n<\/span><span class=\"tag\">&lt;\/IfModule&gt;<\/span><\/code><\/pre>\n<p>and in the webroot folder:<\/p>\n<pre class=\"default prettyprint prettyprinted\"><code><span class=\"tag\">&lt;IfModule<\/span> <span class=\"atn\">mod_rewrite<\/span><span class=\"pln\">.<\/span><span class=\"atn\">c<\/span><span class=\"tag\">&gt;<\/span><span class=\"pln\">\n  RewriteEngine On\n  RewriteBase \/projectname\n  RewriteCond %{REQUEST_FILENAME} !-d\n  RewriteCond %{REQUEST_FILENAME} !-f\n  RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]\n<\/span><span class=\"tag\">&lt;\/IfModule&gt;<\/span><\/code><\/pre>\n<p>&nbsp;<\/p>\n<p>Un sitio\/cliente reportaba constantes errores 505 &#8220;internal server errors&#8221; verificando el error log vimos que este mostraba este error:<\/p>\n<pre class=\"konsole\">[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.<\/pre>\n<p>Esto indica a grandes razgos que se est\u00e1 exediendo el l\u00edmite m\u00e1ximo de redirecciones internas disponibles.<\/p>\n<p>La soluci\u00f3n es sencilla, editamos el .htaccess del cliente en cuesti\u00f3n y colocamos:<\/p>\n<pre class=\"konsole\">RewriteCond %{ENV:REDIRECT_STATUS} 100\nRewriteRule .* \u2013 [L]<\/pre>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/book.cakephp.org\/2.0\/en\/getting-started.html\">http:\/\/book.cakephp.org\/2.0\/en\/getting-started.html<\/a><\/p>\n<p>http:\/\/soyadmin.com\/2014\/12\/solucion-a-request-exceeded-the-limit-of-10-internal-redirects-due-to-probable-configuration-error\/<\/p>\n<p>https:\/\/wordpress.org\/support\/topic\/constant-request-exceeded-the-limit-of-10-internal-redirects-1<\/p>\n<p>http:\/\/stackoverflow.com\/questions\/15850845\/request-exceeded-the-limit-of-10-internal-redirects-due-to-probable-configuratio<\/p>\n<p>http:\/\/stackoverflow.com\/questions\/16490215\/apache-htaccess-request-exceeded-the-limit-of-10-internal-redirects-due-to-pro<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m getting the following error in my CakePHP application: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use &#8216;LimitInternalRecursion&#8217; to increase the limit if necessary. Use &#8216;LogLevel debug&#8217; to get a backtrace., referer: http:\/\/projectname.dev\/ My .htaccess in the root folder,&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_angie_page":false,"page_builder":"","footnotes":""},"categories":[5,19,7],"tags":[],"class_list":["post-3520","post","type-post","status-publish","format-standard","hentry","category-apache2","category-whmcapenel","category-wordpress"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/blog.deuzebranaweb.com.br\/index.php\/wp-json\/wp\/v2\/posts\/3520","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.deuzebranaweb.com.br\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.deuzebranaweb.com.br\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.deuzebranaweb.com.br\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.deuzebranaweb.com.br\/index.php\/wp-json\/wp\/v2\/comments?post=3520"}],"version-history":[{"count":0,"href":"https:\/\/blog.deuzebranaweb.com.br\/index.php\/wp-json\/wp\/v2\/posts\/3520\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.deuzebranaweb.com.br\/index.php\/wp-json\/wp\/v2\/media?parent=3520"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.deuzebranaweb.com.br\/index.php\/wp-json\/wp\/v2\/categories?post=3520"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.deuzebranaweb.com.br\/index.php\/wp-json\/wp\/v2\/tags?post=3520"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}