Home> php教程> PHP开发> body text

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

WBOY
Release: 2016-06-07 17:23:21
Original
1356 people have browsed it

关于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
Copy after login

改为

{$categorydir}{$catdir}/index.html|{$categorydir}{$catdir}/list
Copy after login
Related labels:
source:php.cn
Statement of this Website
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
Popular Recommendations
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!