Sign in QQ login WeChat login

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

finchui two thousand three hundred and seventeen 2023-05-12 21:50:08
Problem description: Implement classification URL: website address/parent classification alias/sub classification alias/pagination/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.

Similarly, implement the 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