2015-09-03 46 views
0

我在的.htaccess異常在.htaccess

<IfModule mod_rewrite.c> 
RewriteEngine on 
RewriteRule ^$ public/ [L] 
RewriteRule (.*) public/$1 [L] 
</IfModule> 

有以下我需要添加exciption爲每.php文件的基本目錄

例如:domain.com/phpfile.php?value=22應該走出去的.htaccess

回答

2

Try:

<IfModule mod_rewrite.c> 
RewriteEngine on 
RewriteRule ^$ public/ [L] 
#stop rewriting php files 
RewriteRule \.php$ - [L] 
RewriteRule (.*) public/$1 [L] 
</IfModule>