【帝国cms教程】帝国cms伪静态规则apache下的.htaccess规则

帝国CMS7.0可以支持伪静态了。下面教大家如何来开启伪静态,这里的规则是默认的规则,需要更加个性化的,可以依据次处修改。

  首先进后后台,系统——系统设置——伪静态参数设置——都点击默认

  [ISAPI_Rewrite]

  # 3600 = 1 hour

  CacheClockRate 3600

  RewriteEngine On

  RepeatLimit 32

  #帝国#

  #信息内容页:showinfo-[!--classid--]-[!--id--]-[!--page--].html

  RewriteRule ^(.*)/showinfo-(.+?)-(.+?)-(.+?).html$ $1/e/action/ShowInfo.php?

  classid=$2&id=$3&page=$4

  #信息列表:listinfo-[!--classid--]-[!--page--].html

  RewriteRule ^(.*)/listinfo-(.+?)-(.+?).html$ $1/e/action/ListInfo/index.php?

  classid=$2&page=$3

  #标题分类列表页:infotype-[!--ttid--]-[!--page--].html

  RewriteRule ^(.*)/infotype-(.+?)-(.+?).html$ $1/e/action/InfoType/index.php?

  ttid=$2&page=$3

  #TAGS信息列表页:tags-[!--tagname--]-[!--page--].html

  RewriteRule ^(.*)/tags-(.+?)-(.+?).html$ $1/e/tags/index.php?tagname=$2&page=$3


版权声明:本文来源于互联网,如有侵权,请联系下方邮箱,一个工作日删除!