花了一个晚上时间,终于把科汛V4.5实现了伪静态功能。下面把规则贴出来供大家参考:
演示网址:http://www.liekesi.cn
伪静态:http://www.liekesi.cn/Article1232 或 http://www.liekesi.cn/Article1232/index.html
真实网址:http://www.liekesi.cn/Article/ShowInfo.asp?id=1232
复制代码 代码如下:
#规则以下======================================================
[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
#栏目导航
RewriteRule ^/Article-Class([0-9]+)$ /Article/ShowClass\.asp\?ID=$1 [L]
RewriteRule ^/Photo-Class([0-9]+)$ /Photo/ShowClass\.asp\?ID=$1 [L]
RewriteRule ^/DownLoad-Class([0-9]+)$ /Photo/ShowClass\.asp\?ID=$1 [L]
#内容连接
RewriteRule ^/Article([0-9]+)$ /Article/ShowInfo\.asp\?ID=$1 [L]
RewriteRule ^/Photo([0-9]+)$ /Photo/ShowInfo\.asp\?ID=$1 [L]
RewriteRule ^/DownLoad([0-9]+)$ /DownLoad/ShowInfo\.asp\?ID=$1 [L]
#栏目分页
RewriteRule ^/Article-Class([0-9]+)_([0-9]+)$ /Article/ShowClass\.asp\?ID=$1&page=$2 [L]