Nginx环境下Typecho伪静态(rewrite)代码规则写法 Nginx环境下Typecho伪静态(rewrite)代码规则写法 if (-f $request_filename/index.html){ rewrite (.*) $1/index.html break; } if (-f $request_filename/index.php){ rewrite (.*) $1/index.php; } if (!-f $request_filename){ rewrite (.*) /index.php; }