admin 发表于 2018-5-3 16:28:07

帝国cms7.5 伪静态规则

Apache:RewriteEngine On
Rewritebase /
#信息内容页
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^showinfo-(+)-(+)-(+).html$ /e/action/ShowInfo.php?classid=$1&id=$2&page=$3
#信息列表
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^listinfo-(+)-(+).html$ /e/action/ListInfo/index.php?classid=$1&page=$2
#标题分类列表页
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^infotype-(+)-(+).html$ /e/action/InfoType/index.php?ttid=$1&page=$2
#TAGS信息列表页
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^tags-(.+?)-(+).html$ /e/tags/index.php?tagname=$1&page=$2
#评论列表页
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^comment-(+)-(+)-(+)-(+)-(+)-(+).html$/e/pl/index.php?doaction=$1&classid=$2&id=$3&page=$4&myorder=$5&tempid=$6
其他环境自行转换。

jwmm 发表于 2018-5-6 21:11:54

支持群主
页: [1]
查看完整版本: 帝国cms7.5 伪静态规则