在根目录下新建名为bcloud_nginx_user.conf的文件,写入下列代码并保存:

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

在主机控制面板中,重载站点;
然后,在Typecho的设置——永久链接设置中开启地址重写功能,若提示检测失败,继续勾选“仍然使用”,保存即可。

最后修改:2020 年 07 月 23 日
如果觉得我的文章对你有用,请随意赞赏