您的位置 首页 技术

分享帝国7.0伪静态Apache的Rewrite设置方法

帝国CMS7.0提供了伪静态的设置,本文就帝国7.0下伪静态Apache的Rewrite设置方法简述如下: 代码如下: # 将 RewriteEngine 模式打开RewriteE…

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

代码如下:

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

推荐学习《帝国cms教程》

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

以上就是分享帝国7.0伪静态Apache的Rewrite设置方法的详细内容,更多请关注24课堂在线网其它相关文章!

本文来自网络,不代表24小时课堂在线立场,转载请注明出处:https://www.24ketang.cn/9610.html

为您推荐

返回顶部