科汛V4.5伪静态的实现正则规则
时间:2021-05-04 10:48:35|栏目:|点击: 次
花了一个晚上时间,终于把科汛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]
演示网址: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]
上一篇:flash as常用方法的记录
栏 目:
下一篇:docker 容器上编译 go 程序提示找不到文件问题
本文标题:科汛V4.5伪静态的实现正则规则
本文地址:http://www.codeinn.net/misctech/114325.html






