有人可以帮我用Apache .htaccess文件来拒绝访问所有的文件和子目录,除了index.html文件上的Apache服务器?
我试过了:
<Location /> Order deny,allow <Files index.html> Order allow,deny </Files> </Location>
但是这并没有奏效。
尝试这个:
Order allow,deny Deny from all <FilesMatch index\.html> Allow from all </FilesMatch>