gxl_ct001 发表于 2010-7-1 17:43:43

如何把 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 规则?
急!!!!!

haohailuo 发表于 2010-7-1 22:42:20

if (!-e $request_filename) {
      rewrite ^(.+)$ yuyan.php/$1 last;
}

gxl_ct001 发表于 2010-7-26 17:38:20

谢谢斑竹,以后还烦请多多指教。
页: [1]
查看完整版本: 如何把 CI 中的 RewriteCond 在 nginx 中写成对应的 rewrite 规则