Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/.htaccess/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 禁用目录的.htaccess_Php_.htaccess_Subdirectory - Fatal编程技术网

Php 禁用目录的.htaccess

Php 禁用目录的.htaccess,php,.htaccess,subdirectory,Php,.htaccess,Subdirectory,Im使用的框架具有以下.htaccess文件: Options +FollowSymLinks +ExecCGI <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_URI} !(\.png|\.jpg|\.gif|\.jpeg|\.bmp|\.ico)$ RewriteRule ^(.*)$ entryPoint.php [QSA] </IfModule> Options+Fo

Im使用的框架具有以下.htaccess文件:

Options +FollowSymLinks +ExecCGI

<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteCond %{REQUEST_URI}  !(\.png|\.jpg|\.gif|\.jpeg|\.bmp|\.ico)$
  RewriteRule ^(.*)$ entryPoint.php [QSA]
</IfModule>
Options+FollowSymLinks+ExecCGI
重新启动发动机
重写cond%{REQUEST_URI}!(\.png\.jpg\.gif\.jpeg\.bmp\.ico)$
重写规则^(.*)$entryPoint.php[QSA]

这很好,因为entryPoint.php每次都运行。但是我有一个PhpBB论坛,放在SITEROOT/forum目录下。最好忽略此/forum目录中的to.htaccess。如何在目录中设置要忽略的规则?

我对重写规则有些生疏,但是

RewriteCond $1 !^/forum 
应该行。

有人发布了“RewriteCond%{REQUEST\u URI}!^/forum”这看起来不错