您的位置:首页 > 帝国cms教程

帝国CMS程序在IIS环境下设置伪静态的教程

2024-01-08 14:40:09 帝国cms教程 229

帝国CMS IIS伪静态教程步骤:
1、进后后台 - 系统 - 系统设置 - 伪静态参数设置 - 都点击默认
2、在网站根目录(web文件夹)下建一个文件,文件名及后缀格式为:httpd.ini
3、用txt/记事本模式打开httpd.ini文件,将下面的内容复制到该文件内:
[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RewriteEngine On
RepeatLimit 32
#帝国#
#信息内容页: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
最后进入win2003服务器 配置站点,让站点支持Rewrite即可.

相关推荐