Request exceeded the limit of 10 internal redirects

前端 未结 7 663
暗喜
暗喜 2020-11-29 07:08

My website has been slowed down a little last couple of days. I\'ve looked into my error log and found lots of these:

[Mon Sep 30 00:09:53 2013] [error] [c         


        
7条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-29 07:28

    The last block:

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?/$1 [L]
    

    Is most likely re-injecting a changed request URI over and over again which could cause such an internal redirect error. Check the error log with debugging level enabled to trace each redirect step, it makes things much more visible and will tell you exactly which redirect rules are triggering it.

    For a detailed description and how to prevent the re-injection, please see:

    • Mod_Rewrite unexpected behavior L flag

    The solution outlined there actually should do it in your case as well. It's pretty much the same, even the file-names are identical.

提交回复
热议问题