

APACHE服务器请添加如下代码: 

<IfModule mod_rewrite.c>
       RewriteEngine On
       RewriteMap tolowercase int:tolower
       RewriteRule ^(.*\/)forum-([-0-9]+)\/?$ $1index.php?__is_iis_rewrite=1&__rewrite_arg=$2
       RewriteRule ^(.*\/)board-([-0-9]+)\/?$ $1dispbbs.php?__is_iis_rewrite=1&__rewrite_arg=$2
       RewriteRule ^(.*\/)([_a-zA-Z]+)-([-0-9]+)\/?$ $1$2.php?__is_iis_rewrite=1&__rewrite_arg=$3
       RewriteRule ^(.*\/index|dispbbs)-([-0-9]+)\.html$ $1.php?__is_iis_rewrite=1&__rewrite_arg=$2
       RewriteRule ^(.*\/index|dispbbs)-([^\.]*)\.html$ $1.php?$2
       RewriteRule ^(.*[^/]?/)rw(f.*)$ $1index.php?__is_apache_rewrite=1&rewrite_url=$2 [L]
       RewriteRule ^(.*[^/]?/)rw(b.*)$ $1dispbbs.php?__is_apache_rewrite=1&rewrite_url=$2 [L]
       RewriteRule ^(.*[^/]?/)rw(s.*)$ $1savvy_dispbbs.php?__is_apache_rewrite=1&rewrite_url=$2 [L]
       RewriteRule ^(.*[^/]?/)rw(d.*)$ $1dispargue.php?__is_apache_rewrite=1&rewrite_url=$2 [L]
</IfModule>


Apache服务器不建议使用目录级URL Rewrite配置,如果你没有服务器配置权限,可以把.htaccess拷贝到论坛根目录下
此配置需要在httpd.conf中开启以下两行代码:
AccessFileName ".htaccess"

<Directory "/">
  #.............#
  AllowOverride All

  #.............#

</Directory>

Win+IIS可以使用dv_iis_url_rewrite.zip包中的配置文件,配置方法详见论坛后台管理

系统相关->URL Rewrite(伪静态)设置 

相关文件见URL Rewrite 目录