Home >php教程 >PHP开发 >phpcms v9优化URL静态列表中的分页问题

phpcms v9优化URL静态列表中的分页问题

WBOY
WBOYOriginal
2016-06-07 17:23:211440browse

关于phpcms v9静态URL的优化,我在前面的如何优化设置phpcms v9的url规则?已经讲过。似乎这种URL优化后的URL字符串是最简短的了,如果列表有多页,那么第二页只是生成一个数字的html,比如news/2.html表示列表第二页,于是问题产生了,这和文章news/2.html有了冲突,要避免这个问题,就要在“管理RUL规则”,把默认列表的URL规则

{$categorydir}{$catdir}/index.html|{$categorydir}{$catdir}/{$page}.html

改为

{$categorydir}{$catdir}/index.html|{$categorydir}{$catdir}/list
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn