我的主public_html目录有以下.htaccess规则:
Options +FollowSymLinks
IndexIgnore */*
<IfModule mod_rewrite.c>
RewriteEngine on
# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# otherwise forward it to index.php
RewriteRule . index.php
</IfModule>
问题是,我有一个名为source的子目录,我希望该目录只列出其中的文件(因为没有索引文件)。问题是上述父目录的htaccess规则导致源目录中的文件不会显示在目录索引中(它只列出了一个空索引)。
我该如何解决这个问题呢?
谢谢
https://stackoverflow.com/questions/9924987
复制相似问题