网站开启伪静态,一般百度更容易收录些!而开启伪静态生成的url链接,也应该考虑其结构的合理化和简单实用。
下面我们为zblog php版本后台伪静态的URL配置,推荐了一种我们长期使用摸索出来的方案,你可以借鉴或者采纳。
如果你的网站已经有大量被收录的页面,我们不建议你更改URL配置。
1、文章的URL配置
我们建议你使用:{%host%}{%category%}/{%id%}.html(网址+所属分类+文章di+html),在以下选项中是没有的,生成的URL链接效果是这样的:https://www.78moban.com/jianzhan/3396.html

Z blog PHP网站后台伪静态的URL配置(建议方案) Z blogPHP 伪静态 zblog教程 第1张
2、页面的URL配置
我们建议你使用:{%host%}{%alias%}.html(网址+页面别名+html),生成的生成的URL链接效果是这样的:https://www.78moban.com/about.html

Z blog PHP网站后台伪静态的URL配置(建议方案) Z blogPHP 伪静态 zblog教程 第2张
3、首页的URL配置
我们建议你使用:{%host%}page_{%page%}.html(网址+page_页数+html),生成的URL链接效果是这样的:https://www.78moban.com/page_2.html

Z blog PHP网站后台伪静态的URL配置(建议方案) Z blogPHP 伪静态 zblog教程 第3张
4、分类页的URL配置
我们建议你使用:{%host%}{%alias%}/{%page%}/(网址+分类目录),在以下选项中是没有的,生成的URL链接效果是这样的:https://www.78moban.com/fuwu/
为什么在这个URL中没有用html呢?我们的目的是让网站分类作为网站单独的一个子目录出现,而子目录在网站中拥有单独的权重(类似cms站点生成的静态目录结构)。

Z blog PHP网站后台伪静态的URL配置(建议方案) Z blogPHP 伪静态 zblog教程 第4张
5、标签页的URL配置
我们建议你使用:{%host%}tags-{%id%}_{%page%}.html(网址+tags-_标签id+html),生成的URL链接效果是这样的:https://www.78moban.com/tags-32.html

Z blog PHP网站后台伪静态的URL配置(建议方案) Z blogPHP 伪静态 zblog教程 第5张
6、日期页的URL配置
我们建议你使用:{%host%}date-{%date%}_{%page%}.html(网址+date-_时间+html),生成的URL链接效果是这样的:https://www.78moban.com/date-2017-10.html

Z blog PHP网站后台伪静态的URL配置(建议方案) Z blogPHP 伪静态 zblog教程 第6张
7、作者页的URL配置
我们建议你使用:{%host%}author-{%id%}_{%page%}.html(网址+author-_作者id+html),生成的URL链接效果是这样的:https://www.78moban.com/author-1.html

Z blog PHP网站后台伪静态的URL配置(建议方案) Z blogPHP 伪静态 zblog教程 第7张