首页 > 建站百科 > 网站建设 > PHPCMS WIN IIS 下的伪静态配置httpd.ini

PHPCMS WIN IIS 下的伪静态配置httpd.ini

时间:2015-01-01 22:26:52 来源:
最近在研究PHPCMS系统,在本地用的是apache,但是空间商用的是WIN,结果伪静态不能使用了。研究了很长时间WIN下的httpd.ini配置写法,现在记录一下:

[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
RewriteEngine on
#content模块
RewriteRule ^(.*)/content-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/index\.php\?m=content&c=index&a=show&catid=$2&id=$3&page=$4
RewriteRule ^(.*)/show-([0-9]+)-([0-9]+)-([0-9]+).html$ $1/index\.php\?m=content&c=index&a=show&catid=$2&id=$3&page=$4
RewriteRule ^(.*)/list-([0-9]+)-([0-9]+).html$ $1/index\.php\?m=content&c=index&a=lists&catid=$2&page=$3

请登录网站了解更多陕西企尚网络科技有限公司的西安网站建设公司http://www.sxqswl.net相关信息