Sign in QQ login WeChat login
All categories

How Z-blogPHP implements the following website link structure: website address/parent category alias/sub category alias/paging/

finchui one thousand four hundred and twenty-eight 2023-05-12 21:50:08

Problem description:

Implementation category URL: website address/parent category alias/sub category alias/paging/

For example: http://domain name/xinwen/gongsixinwen/http://domain name/xinwen/gongsixinwen/page number/


Solution


give an example:

Alias of parent category News

The subcategory "Company News" alias is set to xinwen/gongsixinwen

Classified URL Pseudo static The rule is set to:

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

Finally, the classified URL links of the website can achieve the effect we want Has.

Similarly, implement Article URL: website address/article parent category alias/article subcategory alias/article id.html

The URL pseudo static rule of the article is set to:

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

 image.png

For example: http://domain name/xinwen/gongsixinwen/article id.html



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

label: Z-blogPHP
  • Dislike( one

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

Netizen comments

Hot commodity
Popular articles
Hot tags
Related labels
 FinchUI Store Edition

share

Copy Link

Xinglan Studio Online consultation

Working hours: 9:00-22:00
Saturday and Sunday: 14:00-22:00