我的主要public_html目录具有以下的.htaccess规则:如何停止子目录继承父母的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>
的问题是,我当时有一个名为源的子目录,我想那个目录列表其中的文件(因为没有索引文件)。问题是上述父目录的htaccess规则导致目录索引中没有显示源文件(它只是列出了一个空白索引)。
我该如何解决这个问题?
THANKS
谢谢,这工作完美! – user1280853 2012-03-29 16:02:01
你为我节省了多少解决方案。 – Naeem 2014-02-19 10:46:20