我正在尝试使用 PHP/.htaccess 获取漂亮的 URL,但是我收到 500 个服务器错误并且找不到我做错了什么。
这是我使用的 .htaccess 文件:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /bulkmailer/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/(.*)/(.*)/ /bulkmailer/index.php?prefix=$1&controller=$2&action=$3 [L]
RewriteRule ^(.*)/(.*)/(.*) /bulkmailer/index.php?prefix=$1&controller=$2&action=$3 [L]
RewriteRule ^(.*)/(.*)/ /bulkmailer/index.php?controller=$1&action=$2 [L]
RewriteRule ^(.*)/(.*) /bulkmailer/index.php?controller=$1&action=$2 [L]
RewriteRule ^(.*)/ /bulkmailer/index.php?controller=$1 [L]
RewriteRule ^(.*) /bulkmailer/index.php?controller=$1 [L]
</IfModule>
我可以找到一个错误日志:
[Wed Mar 20 23:44:30.232417 2013] [core:error] [pid 5432:tid 1656] [client ::1:4653] AH00124: 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.
[Wed Mar 20 23:44:34.601496 2013] [core:error] [pid 5432:tid 1660] [client ::1:4654] AH00124: 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.
[Wed Mar 20 23:44:34.601496 2013] [core:error] [pid 5432:tid 1660] [client ::1:4654] AH00124: 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.
我究竟做错了什么?