电脑技术学习

Ecms(帝国CMS)伪静态规则方法

dn001

RewriteEngine On
RewriteBase /

RewriteRule ^([0-9]+).([0-9]+)/$ e/action/ShowInfo.php?classid=$1&id=$2 [L]
RewriteRule ^([0-9]+).([0-9]+)$ $1.$2/ [L,R=301]

RewriteRule ^([0-9]+)/$ e/action/ListInfo/?classid=$1 [L]
RewriteRule ^([0-9]+)$ $1/ [L,R=301]

RewriteRule ^list([0-9]+).([0-9]+)/$ e/action/ListInfo/index.php?page=$1&classid=$2 [L]
RewriteRule ^list([0-9]+).([0-9]+)$ list$1.$2/ [L,R=301]

RewriteRule ^archive([0-9]+).([0-9]+)-([0-9]+)-([0-9]+)/$ e/action/ListInfo.php?classid=$1&mid=1&tempid=9&starttime=$2-$3-$4&endtime=$2-$3-$4 [L]
RewriteRule ^archive([0-9]+).([0-9]+)-([0-9]+)-([0-9]+)$ ^archive([0-9]+).([0-9]+)-([0-9]+)-([0-9]+)/ [L,R=301]