ウェブサイトのcpanelでパスワードで保護されたディレクトリを設定する場合、www.example.com / protectedを使用すると、ユーザー名とパスワードの入力を正しく求められますが、example.com / protectedを使用すると、保護された領域にアクセスできます。
メインサイトの.htaccessは次のとおりです。
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} .*\.(jpeg|jpg|gif|png)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . /public/404.php [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
誰かがこれを修正するために正しい方向に私を向けることができますか?
どうもありがとう
ジム