石家庄网站制作联系电话:13292823610 郭先生 QQ咨询:您当前的位置:首页 > 网站优化

伪静态设置

    来源:石家庄网站建设  发表时间: 2010年05月02日    作者:石家庄轻程网络  浏览次数:

首先请下载以下附件: IIS Rewrite模块 附件:Rewrite.rar

其中httpd.ini为配置文件内容如下:

[ISAPI_Rewrite]

# 3600 = 1 hour
CacheClockRate 3600

RepeatLimit 32

# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP

# Rewrite 系统规则请勿修改 PHPCMS3.0
RewriteRule ^(.*)/show-([0-9]+)-([0-9]+)\.html$ $1/show\.php\?itemid=$2&page=$3
RewriteRule ^(.*)/list-([0-9]+)-([0-9]+)\.html$ $1/list\.php\?catid=$2&page=$3
RewriteRule ^(.*)/show-([0-9]+)\.html$ $1/show\.php\?specialid=$2


将其解压到任意目录,如: C:\Rewrite

打开“控制面板→管理工具→IIS信息服务管理器→网站→您的站点→属性”。在“ISAPI筛选器”项点击 “添加”, 筛选器名称填入Rewrite,可执行文件为C:\Rewrite\Rewrite.dll (如果您解压到其它目录请填入相应地址)

重新启动IIS.

看到状态为向上时成功。

相关内容