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

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







add friends