php 伪静态 500错误,Apache开启伪静态后报500错误.
出自:http://blog.163.com/lgh_2002/blog/static/44017526201051452939761/
檢查APACHE日志發現如下信息:
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.
從邏輯上說不應該出現內部重定向超限,因為我一共才打開了1個鏈接。懷疑是rewrite模塊規則寫錯了,進入死循環。突然想起了.htaccess文件, 原來這個站點是測試部署在一個子目錄/XXXX下,而.htaccess是直接從另一個網站拷貝過來的
RewriteEngine On
RewriteBase ?/kohana/
RewriteRule ^(application|modules|system) - [F,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .*??? ?index.php/$0 [PT,L]
解決方法:將紅色部分代碼改成如下
RewriteRule ^(.*)$?? ?/index.php/$1 [PT,L]
原文:http://www.cnblogs.com/ribavnu/p/4288796.html
總結
以上是生活随笔為你收集整理的php 伪静态 500错误,Apache开启伪静态后报500错误.的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: php遍历数组的四种方法,PHP遍历数组
- 下一篇: php中什么时候用传值,php中传值与传