抱歉,评论被关闭
iis伪静态配置案例
伙计 找到ISAPI Rewrite 安装完的目录那个配置文件 貌似 httpd.ini 加完了下面的代码重新哈iis服务
如下代码
[ISAPI_Rewrite] # 3600 = 1 hour CacheClockRate 3600 RepeatLimit 32 RewriteRule ^/index.html$ /index.php [L] RewriteRule ^/([a-zA-Z]+).html$ /?ac=$1 RewriteRule ^/([a-zA-Z]+)-cid-([0-9]+).html$ /?ac=$1&cid=$2 RewriteRule ^/([a-zA-Z]+)-cid-([0-9]+)-page-([0-9]+).html$ /?ac=$1&cid=$2&page=$3 RewriteRule ^/([a-zA-Z]+)-id-([0-9]+).html$ /?ac=$1&id=$2 RewriteRule ^/([a-zA-Z]+)-name-([a-zA-Z]+).html$ /?ac=$1&name=$2 RewriteRule ^/([a-zA-Z]+)-name-([a-zA-Z]+)-page-([0-9]+).html$ /?ac=$1&name=$2&page=$3
如果上面不兼容就用下面的
[ISAPI_Rewrite] # 3600 = 1 hour CacheClockRate 3600 RepeatLimit 32 RewriteRule ^/index.html$ /index.php [L] RewriteRule ^/([a-zA-Z]+).html$ /\?ac=$1 [I] RewriteRule ^/([a-zA-Z]+)-cid-([0-9]+).html$ /\?ac=$1&cid=$2 [I] RewriteRule ^/([a-zA-Z]+)-cid-([0-9]+)-page-([0-9]+).html$ /\?ac=$1&cid=$2&page=$3 [I] RewriteRule ^/([a-zA-Z]+)-id-([0-9]+).html$ /\?ac=$1&id=$2 [I] RewriteRule ^/([a-zA-Z]+)-name-([a-zA-Z]+).html$ /\?ac=$1&name=$2 [I] RewriteRule ^/([a-zA-Z]+)-name-([a-zA-Z]+)-page-([0-9]+).html$ /\?ac=$1&name=$2&page=$3 [I]
本文出自 “凹凸曼” 博客,请务必保留此出处 http://www.apoyl.com/?p=1180
日志信息 »
该日志于2011-09-08 16:03由 凹凸曼 发表在IIS分类下,
评论已关闭。
目前盖楼