找回密码
 注册
查看: 3966|回复: 7
收起左侧

[分享] 动网论坛DVbbs asp伪静态规则

[复制链接]

5341

主题

8361

帖子

1万

积分

管理员

出售国内外虚拟空间

Rank: 10Rank: 10Rank: 10

积分
14733
帖子
8361
精华
67
体力
14733 点
蓝豆
2391 点
注册时间
2007-6-8

终身成就奖LY官方团队会员身份ID卡

发表于 2014-3-7 22:45:39 | 显示全部楼层 |阅读模式

新建一个文本文件,将下列代码复制进去,把文件重命名为:.htaccess(只有后缀名,没有文件名,可能在WINDOWS下无法重命名,可以先上传,再利用FTP软件来重命名),然后将此文件上传到论坛根目录,把CONN.ASP文件中的Const IsUrlreWrite = 0修改为Const IsUrlreWrite = 1就可以了。

注:你的空间一定要支持伪静态才行。否则就不要折腾了。


RewriteEngine On


#论坛目录
RewriteBase /bbs


# 重写index.asp
RewriteRule ^index_(\d+)_(.*)_(\d+)_(\d+)\.html$ index.asp?boardid=$1&action=$2&topicmode=$3&page=$4 [N,I]
RewriteRule ^index_(\d+)_(\d+)_(.*)\.html$ index.asp?boardid=$1&page=$2&action=$3 [N,I]
RewriteRule ^index_(\d+)_(\d+)\.html$ index.asp?boardid=$1&topicmode=$2 [N,I]
RewriteRule ^index_(\d+)_(\d+)_\.html$ index.asp?boardid=$1&page=$2 [N,I]
RewriteRule ^index_(\d+)\.html$ index.asp?boardid=$1 [N,I]
RewriteRule ^index\.html$ index.asp [N,I]
RewriteRule ^index_(\d+)__(\d+)_(\d+)__(\d+)\.html$ index.asp?boardid=$1&TopicMode=$3&List_Type=&Page=$4


# 重写dispbbs.asp
RewriteRule ^dispbbs_(\d+)_(\d+)_(\d+)_skin(\d+)_(\d+)_(\d+)\.html$ dispbbs.asp?boardid=$1&replyid=$2&id=$3&skin=$4&page=$5&star=$6 [N,I] RewriteRule ^dispbbs_(\d+)_(\d+)_(\d+)_skin(\d+)_(\d+)\.html$ dispbbs.asp?boardid=$1&replyid=$2&id=$3&skin=$4&star=$5 [N,I]
RewriteRule ^dispbbs_(\d+)_(\d+)_(\d+)_skin(\d+)\.html$ dispbbs.asp?boardID=$1&replyid=$2&ID=$3&skin=$4 [N,I]
RewriteRule ^dispbbs_(\d+)_(\d+)_(\d+)\.html$ dispbbs.asp?boardID=$1&ID=$2&page=$3 [N,I]
RewriteRule ^dispbbs_(\d+)_(\d+)\.html$ dispbbs.asp?boardID=$1&ID=$2 [N,I]
RewriteRule ^dispbbs_(\d+)_(\d+)_(\d+)_(\d+)\.html$ dispbbs.asp?boardID=$1&ID=$2&star=$3&page=$4 [N,I]
RewriteRule ^dispbbs_(\d+)_(\d*)_(\d*)_(\w+)\.html$ dispbbs.asp?boardID=$1&ID=$2&page=$3&move=$4 [N,I
RewriteRule ^dispbbs_(\d+)_(\d+)_(\d+)_pre.html$ dispbbs.asp?boardid=$1&id=$2&page=$3&move=pre
RewriteRule ^dispbbs_(\d+)_(\d+)_(\d+)_next.html$ dispbbs.asp?boardid=$1&id=$2&page=$3&move=next


出售国内或美国高性能虚拟空间,高速VPS以及服务器! 同时承接各种类型的网站制作,网站维护,支付宝交易安全放心!    联系QQ:6102031
懒得打字嘛,点击右侧快捷回复
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

网站公告上一条 /2 下一条

GMT+8, 2025-2-5 20:49 , Processed in 0.121684 second(s), 24 queries , Gzip On.

© 2006-2022 Powered by Discuz! X3.4

快速回复 返回顶部 返回列表