【发布时间】:2021-10-06 01:58:49
【问题描述】:
我有一个运行我的 php 应用程序的 linux vps,我注意到它的性能最近显着下降。我检查了错误日志,发现我收到了这些错误:
AH00124:请求超出了 10 个内部重定向的限制,原因是 可能的配置错误。使用“LimitInternalRecursion”增加 必要时限制。使用“LogLevel debug”获取回溯。, 推荐人:https://website.com/app/?id=12345
这是我在 public_html 根目录下的 htaccess
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ CCA\ DCV)?$
RewriteRule ^(.*)$ /index.php?/$1 [L,QSA]
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ CCA\ DCV)?$
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Options -Indexes
RewriteCond %{HTTP_REFERER} !^https://(www\.)?website.com [NC]
RewriteCond %{HTTP_REFERER} !^https://(www\.)?website.com.*$ [NC]
RewriteRule \.(pdf)$ - [F]
这是我在应用程序本身中的 htaccess
Options -Indexes
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]
我不确定我需要做什么才能消除此错误。
【问题讨论】:
-
“应用程序本身中的我的 htaccess” - 我假设您的意思是在
/app子目录中? -
嗨 @MrWhite 是的,它在应用程序子目录中。