サーバーで mod_status をセットアップしようとしていますが、空白のページが表示されます。
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from all
</Location>
問題は、そのすぐ下の書き換えルールだと思います。
<Location />
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /index\.php [L]
</ifmodule>
</Location>
そこで、私がやろうとしているのは、サーバー ステータス ページを除くすべてのリクエストをリダイレクトするルールを追加することです。2 番目の場所ディレクティブを修正しましたが、機能していません。完全な実装は次のとおりです。
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from all
</Location>
<Location />
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !^/server-status/$
RewriteRule ^(.*)$ /index\.php [L]
</ifmodule>
</Location>
この行に何か問題があるかどうか、誰かが教えてくれませんか?
RewriteCond %{REQUEST_FILENAME} !^/server-status/$
ご協力いただきありがとうございます、