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

前端 未结 4 962
再見小時候
再見小時候 2020-12-05 00:01

I\'m getting the following error in my CakePHP application:

Request exceeded the limit of 10 internal redirects due to probable configuration error. Use \'LimitInter

4条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-05 00:20

    I just found a solution to the problem here:

    http://willcodeforcoffee.com/2007/01/31/cakephp-error-500-too-many-redirects/

    The .htaccess file in webroot should look like:

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

    instead of this:

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

提交回复
热议问题