A-A+

LeadBBS伪静态设置

2013年08月16日 Leadbbs 暂无评论 阅读 270 次浏览 次

适合Helicon Ape 3.1+或ISAPI_Rewrite 3.1+的.htaccess配置文件

此配置适合任意安装目录,多级目录,不区分大小写。

并支持leadbbs 9.0的callback
 

  1. RewriteEngine on 
  2. #RewriteBase / 
  3. RewriteCond %{QUERY_STRING} (.+)? 
  4. RewriteRule ^([a-z0-9\/\\_]*)boards-?([0-9]+)?.html$ $1boards.asp?assort=$2&%1 [L,NC] 
  5. RewriteCond %{QUERY_STRING} (.+)? 
  6. RewriteRule ^([a-z0-9\/\\_]*)a/topic-([0-9]+)-([0-9]+)-([0-9]+)-?([0-9]+)?\.html$ $1a/a.asp\?b=$2&id=$3&aq=$4&q=$5&%1 [L,NC] 
  7. RewriteCond %{QUERY_STRING} (.+)? 
  8. RewriteRule ^([a-z0-9\/\\_]*)b/forum-([0-9]+)-([0-9]+)\.html$ $1b/b.asp\?b=$2&q=$3&%1 [L,NC] 
  9. RewriteCond %{QUERY_STRING} (.+)? 
  10. RewriteRule ^([a-z0-9\/\\_]*)user/([0-9]+)-?(a|n|g|e|l|f|bag)?\.html$ $1user/lookuserinfo.asp\?id=$2&evol=$3&%1 [L,NC] 
  11. RewriteCond %{QUERY_STRING} (.+)? 
  12. RewriteRule ^([a-z0-9\/\\_]*)user/my-?(a|n|g|e|l|f|bag)?\.html$ $1user/lookuserinfo.asp\?evol=$2&%1 [L,NC]

 

如果是其它目录,更改 bbs为其它的名称

 

如果您的空间支持rewrite,在网站根目录下面建立 .htaccess 文件,或http.ini文件(需要视 具体的rewrite版本)

使用ftp更改此文件内容,添加以上三行正则式

 

论坛设置开启伪静态:

 

管理员 > 论坛参数设置 > 侧栏及更多参数设置 > 勾选 开启伪静态

 

更多介绍:

 

目前提供三部分伪静态化

 

1.论坛首页对版面的链接

2.论坛帖子列表对帖子内容及版面帖子跳转分页的伪静态

3.帖子内容查看分页伪静态

 

伪静态权限设置: 以ISAPI_Rewrite3 + windows平台为例:

 

1.network service 要求对安装目录有读取和运行的权限

2.IIS_WPG对网站的 .htaccess 文件有读取的权限

 

 

具体伪静态功能会在部分功能补齐后提供(比如sitemap).

 

注:

1.3.X版 isapiwrite 不区分大小写办法:RewriteRule最后添加 [ I ]

APE或3.X版本rewrite 不区分大小写则需要写为 [L,NC]

 

附 Helicon Ape version 3.1.X或ISAPI_Rewrite 3.1.X配置,不区分大小写,支持leadbbs 9.0的callback
 

  1. # Helicon Ape version 3.1.0.99 
  2. # Helicon ISAPI_Rewrite configuration file 
  3. # Version 3.1.0.73 
  4. RewriteEngine on 
  5. # RewriteBase / 
  6. RewriteCond %{QUERY_STRING} (.+)? 
  7. RewriteRule ^boards-?([0-9]+)?.html$ /boards.asp?assort=$1&%1 [L,NC] 
  8. RewriteCond %{QUERY_STRING} (.+)? 
  9. RewriteRule ^a/topic-([0-9]+)-([0-9]+)-([0-9]+)-?([0-9]+)?\.html$ /a/a.asp\?b=$1&id=$2&aq=$3&q=$4&%1 [L,NC] 
  10. RewriteCond %{QUERY_STRING} (.+)? 
  11. RewriteRule ^b/forum-([0-9]+)-([0-9]+)\.html$ /b/b.asp\?b=$1&q=$2&$3&%1 [L,NC] 
  12. RewriteCond %{QUERY_STRING} (.+)? 
  13. RewriteRule ^user/([0-9]+)-?(a|n|g|e|l|f|bag)?\.html(.*)$ /user/lookuserinfo.asp\?id=$1&evol=$2&$3&%1 [L,NC] 
  14. RewriteCond %{QUERY_STRING} (.+)? 
  15. RewriteRule ^user/my-?(a|n|g|e|l|f|bag)?\.html(.*)$ /user/lookuserinfo.asp\?evol=$1&$2&%1 [L,NC] 
  16. RewriteCond %{QUERY_STRING} (.+)? 
  17. #RewriteRule ^forum-([0-9]+)-([0-9]+)-([0-9]+)\.html(.*)$ /a/a.asp\?b=$1&id=$2&aq=$3&$4&%1 [L,NC] 
  18. # Helicon ISAPI_Rewrite configuration file 
  19. # Version 3.x

 

标签:

评论已关闭!

Copyright © 香港虚拟主机_美国虚拟主机_香港服务器_美国服务器租用托管 保留所有权利.   Theme  Ality 蜀ICP备14006632号-1

用户登录