1.IIS 下伪静态设置
首先请下载以下附件: IIS Rewrite模块 附件:点击下载
其中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 (如果您解压到其它目录请填入相应地址)