如何强制.htaccess忽略文件夹?

如何强制.htaccess忽略文件夹?,.htaccess,ignore,.htaccess,Ignore,我正在使用搜索功能,但似乎没有一个解决方案适合我。我有以下.htaccess文件 Options +FollowSymLinks RewriteEngine On RewriteRule ^(api) - [L] RewriteCond %{REQUEST_URI} !(\.css|\.js|\.png|\.jpg|\.gif|robots\.txt)$ [NC] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME

我正在使用搜索功能,但似乎没有一个解决方案适合我。我有以下.htaccess文件

Options +FollowSymLinks
RewriteEngine On
RewriteRule ^(api) - [L]
RewriteCond %{REQUEST_URI} !(\.css|\.js|\.png|\.jpg|\.gif|robots\.txt)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?action=$1 [L,QSA]

ErrorDocument 404 /tsi/index.php
ErrorDocument 403 /tsi/index.php

<FilesMatch ".*\.(php|tpl)$">
    Order Allow,Deny
    Deny from all
</FilesMatch>

<Files "index.php">
    Allow from all
</Files>

<FilesMatch "hashgenerator\.(php)$">
    Satisfy Any
    Allow from all
</FilesMatch>

<FilesMatch "xmlgenerator\.(php)$">
    Satisfy Any
    Allow from all
</FilesMatch>

<FilesMatch "api\.(php)$">
    Satisfy Any
    Allow from all
</FilesMatch>
Options+FollowSymLinks
重新启动发动机
重写规则^(api)-[L]
重写cond%{REQUEST_URI}!(\.css\.js\.png\.jpg\.gif\.robots\.txt)$[NC]
重写cond%{REQUEST_FILENAME}-F
重写cond%{REQUEST_FILENAME}-D
重写规则^(.*)$index.php?操作=$1[L,QSA]
ErrorDocument 404/tsi/index.php
ErrorDocument 403/tsi/index.php
命令允许,拒绝
全盘否定
通融
满足任何
通融
满足任何
通融
满足任何
通融
我有一个名为“api”的文件夹,我想被.htaccess忽略。你能帮帮我吗

多谢各位