伪静态设置

  • 来源:PHPCMS 作者:PHPCMS 发布时间:2008-05-04阅读次数:

1.IIS 下伪静态设置

首先请下载以下附件: 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%26amp;page=$3
RewriteRule ^(.*)/list-([0-9]+)-([0-9]+)\.html$ $1/list\.php\?catid=$2%26amp;page=$3
RewriteRule ^(.*)/show-([0-9]+)\.html$ $1/show\.php\?specialid=$2


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

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

重新启动IIS.

看到状态为向上时成功。