How does Z-blogPHP implement the following website link structure: website address/parent category alias/child category alias/paging/

问题描述:实现分类URL:网站地址/父分类别名/子分类别名/分页/例如:http://域名/xinwen/gongsixinwen/ http://域名/xinwen/gongsixinwen/页码/


solutions

举例:

Xinwen, alias for parent category "news"

子分类“公司新闻”别名设置为xinwen/gongsixinwen

分类的URLpseudo-static规则设置为:

{%host%}{%alias%}/{%page%}/

最终,网站分类的URL链接就可以实现我们想要的效果了。

同理,实现文章URL:网站地址/文章所属父分类别名/文章所属子分类别名/ 文章id.html

文章的URL伪静态规则设置为:

{%host%}{%category%}/{%id%}.html

image.png

例如:http://域名/xinwen/gongsixinwen/文章id.html

website-hosting-concept-with-search-bar.jpg

t like1

Link to this article:https://en.finchui.com/zblog-course/43.html

netizens commented

guess you like

hot commodity
popular articles
hot Tags
related tags
FinchUI Store Edition Hong Kong Special Area

share

copy Link

Xinglan Studioadd friends

Working hours: 9:00-22:00
Saturday and Sunday: 14:00-22:00
wechat
Scan the code to add customer service WeChat