当前位置:网站首页>Pseudo static setting of Typecho - starze V Club

Pseudo static setting of Typecho - starze V Club

2022-06-11 00:00:00 Xingze V Club

This site provides two kinds of pseudo static settings , It's all based on Nginx Of . One is the official version , The other is the optimized version , This site uses the optimized version .

Official edition

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

Optimized version

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;
    }
}

this paper

原网站

版权声明
本文为[Xingze V Club]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/03/202203020933398857.html