我有一个名为/static的目录,其中包含许多子目录。
我需要忽略/static/目录下所有子目录中的所有文件,除了.htaccess、null.jpg和index.php文件之外。
请告诉我正确的语法是什么?
/static/**
!/static/**/.htaccess
and
/static/*
!/static/*/.htaccess
无法工作。
!/static/**/
作为第二行是否可行? - Willem Van Onsem