我有一个目录收藏夹,当我访问 hostname.com/favoris 时,它的重写如何防止这种情况发生?
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.*) index.php [L]
文件收藏夹/.htaccess
AuthType Basic
AuthName "****"
AuthUserFile "/home/****/.htpasswds/public_html/favoris/passwd"
require valid-user