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

Problem description: Implementation classification URL: website address/parent classification alias/child classification alias/paging/For example: http://domain name/xinwen/gongsixxinwen/http://domain name/xinwen/gongsixxinwen/page number/


solutions

Examples:

Xinwen, alias for parent category "news"

Subcategory "Company News" alias is set to xinwen/gongsixxinwen

categorized URLpseudo-staticRules are set to:

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

In the end, the URL links of the website classification can achieve the effect we want.

In the same way, implement the article URL: website address/parent category alias to which the article belongs/subcategory alias to which the article belongs/article id.html

The article's URL pseudo-static rule is set to:

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

image.png

For example: http://domain name/xinwen/gongsixxinwen/article 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