Php .htaccess-允许直接访问多个特定文件,同时阻止其余文件

Php .htaccess-允许直接访问多个特定文件,同时阻止其余文件,php,apache,.htaccess,mod-rewrite,Php,Apache,.htaccess,Mod Rewrite,我一直在做关于论坛和谷歌的研究,但是所有的资源都指出除了一个文件之外,所有的文件都被屏蔽了。我需要允许多个文件直接访问。请查看当前的.htaccess: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteR

我一直在做关于论坛和谷歌的研究,但是所有的资源都指出除了一个文件之外,所有的文件都被屏蔽了。我需要允许多个文件直接访问。请查看当前的.htaccess:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

重新启动发动机
重写基/
重写规则^index\.php$-[L]
重写cond%{REQUEST_FILENAME}-F
重写cond%{REQUEST_FILENAME}-D
重写规则/index.php[L]
上述代码将阻止除
/index.php
之外的所有内容。如何允许更多文件直接访问,例如,
/static\u app.php