Typecho伪静态nginx规则

Typecho伪静态nginx规则

收集了以下两款均可以用

1
2
3
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php$1 last;
}C

1
2
3
4
5
6
7
8
9
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;
}

看你喜欢哪款用哪款,两款我都在用,均没出现毛病!😂

0%