一文搞定帝国7.0伪静态Apache的Rewrite设置方法

一文搞定帝国7.0伪静态Apache的Rewrite设置方法

帝国CMS7.0提供了伪静态的设置,本文就帝国7.0下伪静态Apache的Rewrite设置方法简述如下:

代码如下:

# 将 RewriteEngine 模式打开 RewriteEngine On #信息内容页:showinfo-[!--classid--]-[!--id--]-[!--page--].html RewriteCond %{QUERY_STRING} ^(.*)$ RewriteRule ^showinfo-(.+?)-(.+?)-(.+?).html$ /e/action/ShowInfo.php?classid=$1&id=$2&page=$3</p> <p>#信息列表: listinfo-[!--classid--]-[!--page--].html RewriteCond %{QUERY_STRING} ^(.*)$ RewriteRule ^listinfo-(.+?)-(.+?).html$ /e/action/ListInfo/index.php?classid=$1&page=$2</p> <p>#标题分类列表页: infotype-[!--ttid--]-[!--page--].html RewriteCond %{QUERY_STRING} ^(.*)$ RewriteRule ^infotype-(.+?)-(.+?).html$ /e/action/InfoType/index.php?ttid=$1&page=$2</p> <p>#TAGS信息列表页: tags-[!--tagname--]-[!--page--].html RewriteCond %{QUERY_STRING} ^(.*)$ RewriteRule ^tags-(.+?)-(.+?).html$ /e/tags/index.php?tagname=$1&page=$2

以上就是默认的Rewrite规则设置方法。

推荐学习《帝国cms教程》

以上就是一文搞定帝国7.0伪静态Apache的Rewrite设置方法的详细内容,更多请关注七哩云社其它相关文章!

帝国CMS教程

必学的帝国cms整合ckplayer6.1的方法

2022-6-13 19:19:39

帝国CMS教程

聊聊帝国cms调用栏目别名的修改步骤

2022-6-13 19:19:45

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索