首页 > CMS > 帝国Empire > 正文

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

2024-08-28 12:19:06
字体:
来源:转载
供稿:网友

这篇文章主要为大家介绍了帝国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

#信息列表:listinfo-[!--classid--]-[!--page--].htmlRewriteCond %{QUERY_STRING} ^(.*)$RewriteRule ^listinfo-(.+?)-(.+?).html$ /e/action/ListInfo/index.php?classid=$1&page=$2

#标题分类列表页:infotype-[!--ttid--]-[!--page--].htmlRewriteCond %{QUERY_STRING} ^(.*)$RewriteRule ^infotype-(.+?)-(.+?).html$ /e/action/InfoType/index.php?ttid=$1&page=$2

#TAGS信息列表页:tags-[!--tagname--]-[!--page--].htmlRewriteCond %{QUERY_STRING} ^(.*)$RewriteRule ^tags-(.+?)-(.+?).html$ /e/tags/index.php?tagname=$1&page=$2

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

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表