我有以下问题:
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.
Apache试图到达不存在的文件。
这是我的.htaccess:
RewriteEngine on Options +FollowSymlinks RewriteCond %{HTTP_HOST} ^(www.)?domain.com$ RewriteCond %{REQUEST_URI} !^/subfolder/$ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /subfolder/$1 RewriteRule ^\??$ index.php [L]
我打开了日志,在日志里有这样的:
/nonexistingfile -> /subfolder/nonexistingfile /subfolder/nonexistingfile -> subfodler/subfolder/nonexistingfile /subfodler/subfolder/nonexistingfile -> subfodler/subfodler/subfolder/nonexistingfile
像这样10次。
将[L]添加到您重写到子文件夹的行中。