帝国cms伪静态规则(帝国cms栏目拼音伪静态)
如何设置Imperial伪静态Apache Rewrite?
如何设置Empire伪静态的Rewrite Apache Empire CMS7.0提供了伪静态设置。本文简单介绍Empire 7.0下伪静态Apache的Rewrite设置方法如下:
推荐学习《帝国cms教程》
代码如下:
# 开启RewriteEngine模式RewriteEngine On #信息内容页: showinfo-3-12047-[!--page--].htmlRewriteCond %{QUERY_STRING} ^(.* )$RewriteRule ^showinfo-(.+?)-(.+?)-(.+?).html$ /e/action/ShowInfo.php?classid=$1id=$2page=$3/p p#信息列表: listinfo-3-[!--page--].htmlRewriteCond %{QUERY_STRING} ^(.*)$RewriteRule ^listinfo-(.+?)-(.+?).html$/e/action/ListInfo/index.php?classid=$1page=$2/p #标题分类列表页:infotype-0-[!--page--].htmlRewriteCond %{QUERY_STRING} ^ (.*)$RewriteRule ^infotype-(.+?)-(.+?).html$ /e/action/InfoType/index.php?ttid=$1page=$2/p #TAGS信息列表页:tags- [!--tagname--]-[!--page--].htmlRewriteCond %{QUERY_STRING} ^(.*)$RewriteRule ^tags-(.+?)-(.+?).html$ /e/Tags/index.php?tagname=$1page=$2 以上是默认的Rewrite规则设置方法。
以上就是帝国伪静态Apache Rewrite如何设置的详细内容。更多资讯请关注木库阁其他相关文章!