如何把 CI 中的 RewriteCond 在 nginx 中写成对应的 rewrite 规则
本机上用的 Apache,框架是 CI 1.7.2 .htaccess 文件如下RewriteEngine on
RewriteCond $1 !^(yuyan\.php|www|uploads|favicon\.ico|robots\.txt)
RewriteRule ^(.*)$ yuyan.php/$1
请高手指点如何把 CI 中的 RewriteCond在 nginx 中写成对应的 rewrite 规则?
急!!!!! if (!-e $request_filename) {
rewrite ^(.+)$ yuyan.php/$1 last;
} 谢谢斑竹,以后还烦请多多指教。
页:
[1]