备份Typecho 伪静态

备份Typecho 伪静态

location / {

index index.html index.php;
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;
}
}

标签: typecho, 静态, 伪静态, 规则, bt.cn, nginx

添加新评论