Zblog伪静态的设置

原梓番
原梓番
管理员
827
文章
0
粉丝
互联网&数码 建站评论2,708阅读模式

首先,修改nginx.conf,在 location / { }

节点 或者是 location [安装目录名称] / { }(子目录安装)节点间加入下列代码:文章源自原紫番博客-https://www.yuanzifan.com/57249.html

 文章源自原紫番博客-https://www.yuanzifan.com/57249.html

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

然后,在zBlog的市场上,下载静态管理中心插件。安装并简单设置:文章源自原紫番博客-https://www.yuanzifan.com/57249.html

文章源自原紫番博客-https://www.yuanzifan.com/57249.html 文章源自原紫番博客-https://www.yuanzifan.com/57249.html

站长微信
扫码添加(注明来意)
weinxin
Yuanzifan99
微信号已复制
原梓番博客公众号
博客内容精选
weinxin
原梓番博客
公众号已复制
 

发表评论

匿名网友
确定

拖动滑块以完成验证