Zblog伪静态的设置

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

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

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

  1. if (-f $request_filename/index.html){
  2. rewrite (.*) $1/index.html break;
  3. }
  4. if (-f $request_filename/index.php){
  5. rewrite (.*) $1/index.php;
  6. }
  7. if (!-f $request_filename){
  8. rewrite (.*) /index.php;
  9. }

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

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

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

发表评论

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

拖动滑块以完成验证
加载中...