.htaccess に少し問題があります。ディレクトリが安全な場合、または安全なサブディレクトリ/ファイルの場合、mod rewrite の有効化を停止したいと考えています。次のように .htaccess を設定しました。
RewriteEngine On
RewriteBase /
#skip next rule if url starts with secure/
RewriteRule ^/secure/(.*) - [L,S]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
<Files 403.shtml>
order allow,deny
allow from all
</Files>
なぜそれが機能しないのか、誰にもわかりませんか?ディレクトリにhtpasswordを使用する必要があるため、modの書き換えをオフにすることはできません。