【发布时间】:2015-04-29 15:46:40
【问题描述】:
我正在使用 Xampp,并且我的计算机中有很多 Web 项目,所以我决定创建一个虚拟主机,但是当我使用 htaccess rewriterules 创建一些友好的 URL 时,我在日志中收到以下错误:
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.
我已经尝试了很多张贴在这里的东西,但没有任何效果...你们能帮帮我吗?
我的虚拟主机:
<VirtualHost myproject.com:80>
ServerName myproject.com
ServerAlias www.myproject.com
DocumentRoot "D:/xampp/www/myproject"
<Directory "D:/xampp/www/myproject">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
我的 .htaccess:
RewriteEngine On
RewriteBase /
RewriteRule ^404/$ /404.html [L]
RewriteRule ^404$ /404.html [L]
RewriteRule ^([^/]*)/$ /index.php?p=$1 [L]
RewriteRule ^([^/]*)$ /index.php?p=$1 [L]
非常感谢:D
【问题讨论】:
标签: apache .htaccess mod-rewrite xampp virtualhost