【发布时间】:2013-04-03 15:09:45
【问题描述】:
当我在localhost 上查看我的网站时,它运行良好。当我尝试在我的网络 ip (192.68.x.x) or 127.0.0.1 上打开它时,我收到错误 500 内部服务器错误。我检查了 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.
我在 so 上读到了同样的错误,我得到了一些应该可以工作的 htaccess 示例,尝试了所有但我只是不断收到消息,在某些情况下 http://localhost 也停止工作。我的 htaccess 将所有内容重定向回 index.php,从我开始我的网站类。
这是我的 htaccess :
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?param=$1 [QSA,L]
谁能指出我正确的方向?谢谢!
【问题讨论】:
-
使用 'LogLevel debug' 获取回溯。
-
我该如何使用它?