Zblog伪静态的设置

首先,修改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

 

发表评论

匿名网友
:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:
确定

拖动滑块以完成验证