.htaccess 如何使htaccess规则不影响目录?
我有一个名为min的文件夹,其中有一个htacces,用于处理不存在的路径,如/min/variable,以返回一些数据 现在,在主文件夹中,我放置了一个htaccess,其内容如下:.htaccess 如何使htaccess规则不影响目录?,.htaccess,.htaccess,我有一个名为min的文件夹,其中有一个htacces,用于处理不存在的路径,如/min/variable,以返回一些数据 现在,在主文件夹中,我放置了一个htaccess,其内容如下: RewriteEngine on RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^/?emit/(.*)$ emit.php?nice=t&f=$1 不幸
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^/?emit/(.*)$ emit.php?nice=t&f=$1
不幸的是,现在在我调用domain.com/min/variable之后,我得到了一个空的网站
如何修复它,使新规则不会阻止旧规则?比如:
if something from /min/ is called don't use the new rule
以你想要的方式做那件事是不可能的 只需在dir中创建.htaccess文件,并将RewriteEngine off语句放在那里 但它会关闭你所有的声明