A-A+
LeadBBS伪静态设置
适合Helicon Ape 3.1+或ISAPI_Rewrite 3.1+的.htaccess配置文件
此配置适合任意安装目录,多级目录,不区分大小写。
并支持leadbbs 9.0的callback
- RewriteEngine on
- #RewriteBase /
- RewriteCond %{QUERY_STRING} (.+)?
- RewriteRule ^([a-z0-9\/\\_]*)boards-?([0-9]+)?.html$ $1boards.asp?assort=$2&%1 [L,NC]
- RewriteCond %{QUERY_STRING} (.+)?
- 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]
- RewriteCond %{QUERY_STRING} (.+)?
- RewriteRule ^([a-z0-9\/\\_]*)b/forum-([0-9]+)-([0-9]+)\.html$ $1b/b.asp\?b=$2&q=$3&%1 [L,NC]
- RewriteCond %{QUERY_STRING} (.+)?
- 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]
- RewriteCond %{QUERY_STRING} (.+)?
- 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
- # Helicon Ape version 3.1.0.99
- # Helicon ISAPI_Rewrite configuration file
- # Version 3.1.0.73
- RewriteEngine on
- # RewriteBase /
- RewriteCond %{QUERY_STRING} (.+)?
- RewriteRule ^boards-?([0-9]+)?.html$ /boards.asp?assort=$1&%1 [L,NC]
- RewriteCond %{QUERY_STRING} (.+)?
- 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]
- RewriteCond %{QUERY_STRING} (.+)?
- RewriteRule ^b/forum-([0-9]+)-([0-9]+)\.html$ /b/b.asp\?b=$1&q=$2&$3&%1 [L,NC]
- RewriteCond %{QUERY_STRING} (.+)?
- RewriteRule ^user/([0-9]+)-?(a|n|g|e|l|f|bag)?\.html(.*)$ /user/lookuserinfo.asp\?id=$1&evol=$2&$3&%1 [L,NC]
- RewriteCond %{QUERY_STRING} (.+)?
- RewriteRule ^user/my-?(a|n|g|e|l|f|bag)?\.html(.*)$ /user/lookuserinfo.asp\?evol=$1&$2&%1 [L,NC]
- RewriteCond %{QUERY_STRING} (.+)?
- #RewriteRule ^forum-([0-9]+)-([0-9]+)-([0-9]+)\.html(.*)$ /a/a.asp\?b=$1&id=$2&aq=$3&$4&%1 [L,NC]
- # Helicon ISAPI_Rewrite configuration file
- # Version 3.x
评论已关闭!