AMH面板下Typecho首次安装

AMH面板下Typecho首次安装

typecho
1年前发布

首次使用可能出现可以进主页,但是进其它页面会出现 404 的情况。
需要在 URL 规则里追加 Typecho 规则。
点击追加规则选择“typecho”,规则内容被添加以下内容:

location / {
    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;
    }
}
© 版权声明
THE END
喜欢就支持一下吧
点赞 0 分享 收藏
评论
所有页面的评论已关闭