.htaccess 中的异常
Exception in .htaccess
我的 .htaccess 中有以下内容
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ public/ [L]
RewriteRule (.*) public/ [L]
</IfModule>
而且我需要为基础目录
中的每个.php
文件添加exciption
例如:domain.com/phpfile.php?value=22
应该退出 .htaccess
尝试:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ public/ [L]
#stop rewriting php files
RewriteRule \.php$ - [L]
RewriteRule (.*) public/ [L]
</IfModule>
我的 .htaccess 中有以下内容
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ public/ [L]
RewriteRule (.*) public/ [L]
</IfModule>
而且我需要为基础目录
中的每个.php
文件添加exciption
例如:domain.com/phpfile.php?value=22
应该退出 .htaccess
尝试:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ public/ [L]
#stop rewriting php files
RewriteRule \.php$ - [L]
RewriteRule (.*) public/ [L]
</IfModule>