问题描述:实现分类URL:网站地址/父分类别名/子分类别名/分页/例如:http://域名/xinwen/gongsixinwen/ http://域名/xinwen/gongsixinwen/页码/
解决方案
举例:
父分类"新闻"的别名xinwen
子分类“公司新闻”别名设置为xinwen/gongsixinwen
分类的URLPseudo-statique规则设置为:
{%host%}{%alias%}/{%page%}/
最终,网站分类的URL链接就可以实现我们想要的效果了。
同理,实现文章URL:网站地址/文章所属父分类别名/文章所属子分类别名/ 文章id.html
La règle pseudo-URL statique de l'article est définie comme :
{%host%}{%category%}/{%id%}.html

Exemple : http://domain/xinwen/gongsixinwen/articleid.html







Ajouter des amis