Home > Backend Development > PHP Tutorial > dedecms栏目伪静态规则

dedecms栏目伪静态规则

WBOY
Release: 2016-06-13 10:38:09
Original
791 people have browsed it

dedecms栏目伪静态规则求助
dedecms栏目伪静态规则求助:

系统用的是DEDECMS的
因为栏目和内容比较多 使用静态的话生成很慢 所以改用伪静态

但是查找了一下网上的DEDE伪静态规则都是生成这样的:
www.xxx.com/list-1.html 列表页
www.xxx.com/view-1-1.html 内容页

我想要的是这样的格式:
www.xxx.com/aaa/ 栏目页
www.xxx.com/aaa/1.html 内容页
www.xxx.com/aaa/list-1.html 列表页
请问大哥大姐们 这种伪静态怎么来写?
请帮我写出栏目页、内容页、列表页的伪静态规则,谢谢!~~

------解决方案--------------------
没说清楚,大概写了下。
RewriteRule ^\/aaa\/(0-9)+\.html\.com$ list-$1\.html
RewriteRule ^\/aaa\/list-(.*).html\.com$ view-$1\.html


------解决方案--------------------

探讨

没说清楚,大概写了下。
RewriteRule ^\/aaa\/(0-9)+\.html\.com$ list-$1\.html
RewriteRule ^\/aaa\/list-(.*).html\.com$ view-$1\.html
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 Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template