帝国cms栏目伪静态设置
- 时间:
- 来源:开源中国
帝国cms栏目伪静态设置有三个地方
第一后台系统,伪静态规则设置,如:
信息列表页 [!--classid--],[!--page--] /
第二栏目设置为:
栏目页模式 静态页面动态页面
第三在服务器(我用的是VPS-centos+apache多虚拟主机)
RewriteEngine on
RewriteRule ^/glist-(.+?)-(.+?).html$ /e/action/ListInfo/index.php?classid=$1&page=$2
这两个配置很关键,因为我把规则直接写在.htaccess 文件里面感觉没用,试了一天才搞出来,之前一直以为是规则写错了。。。希望后来的人不要走弯路了。。。