Nginx实现Typecho伪静态URL重写

· Typecho · 25 views

在Nginx伪静态配置中添加如下代码:

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

Nginx