解决 typecho 更改文件到二级目录无法访问

28162-459tsvc8lwg.png

已经安装过了的 typecho 迁移

一、

nginx 配置中配置伪静态

location /fetc/ {
    if (-f $request_filename/index.html){
        rewrite (.*) $1/index.html break;
    }
    if (-f $request_filename/index.php){
        rewrite (.*) $1/index.php last;
    }
    if (!-f $request_filename){
        rewrite (.*) /fetc/index.php last;
    }
}

二、

登录站点后台设置站点地址

版权属于:

Ginkgo

本文链接:

https://imao2.com/article/84.html(转载时请注明本文出处及文章链接)

Ginkgo

一个今天胜过两个明天。

35 文章
0 评论
5 分类

标签云