zblog教程 | 2020年05月09日14时20分03秒 | 评论:0
爱站云本站是zblog程序已经设置了伪静态,二级目录做了导航也想设置伪静态发现不兼容,在百度查到的设置方法,亲测有用分享给你们~
主站博客伪静态链接:http://www.aizhanqqq.com/244.html
二级目录伪静态链接:http://www.aizhanqqq.com/daohang/1.html
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; } } location /daohang/ { 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 (.*) /daohang/index.php; } }
规则代码中的/daohang/修改成你的二级目录即可,如二级目录是blog就修改成/blog/,然后在二级目录ZBLOG后台设置好伪静态格式链接;
爱站云服务器是Nginx的环境,所以就只发布Nginx的啦,需要Apache和IIS的小伙伴可以自己转一下规则代码,转不明白的可以联系爱站云付费操作哟!
相关文章
网友点评
本文暂无评论 - 欢迎您
⎛⎝爱站云⎠⎞
AiZhanCloud.Com