0

我知道这个问题之前已经回答过了,但是 .htaccess 文件的设计非常个人化,我发现很难将其他帖子中的修复应用到我的 .htaccess 文件中。这 .htaccess 它在 webdir 的根目录中并导致此错误:

"[error] [client 1.1.1.1] 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".

如果有人可以指出我的 .htaccess 中的缺陷,我将不胜感激!谢谢!

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} !(.*)\.  (gif|jpeg|jpg|png|css|js|pdf|doc|xml|ico|html|php|json|swf|mp3|ogg|wav)$
RewriteCond %{REQUEST_URI} !(service)
RewriteCond %{REQUEST_URI} !(.*)/$
RewriteRule ^(.*)$ $1/                  [L,R=301]
RewriteRule ^[^/.]*/(.*)    app/$1     [L]
4

1 回答 1

1

不知道你想做什么,但看起来你需要一个:

RewriteCond %{REQUEST_URI} !app/

就在之前:

RewriteRule ^[^/.]*/(.*)    app/$1     [L]
于 2013-06-12T00:55:56.410 回答