首页 > CMS教程 > 帝国Empire > 正文

帝国CMS伪静态怎么设置

2024-04-25 20:34:40
字体:
来源:转载
供稿:网友

我们来配置帝国cms伪静态规则httpd.ini 文件如下:

[ISAPI_Rewrite]

# 3600= 1hour

CacheClockRate 3600

RewriteEngine On

RepeatLimit 32

#301重定向#

RewriteCond Host: ^phpfensi.com$

RewriteRule (.*)http://www.phpfensi.com$1[I,RP]

#帝国#

#信息内容页: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

 

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

图片精选