Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想通过 403 错误消息阻止我的网站目录之一,但不阻止其子文件夹或子目录。我想要 .htaccess 编码。我试过编码,它也会阻止那些子文件夹。
尝试在要阻止的文件夹中的 htaccess 文件中添加这些规则:
RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([^/]+)$ - [L,F]