discuz论坛中启用rewriterurl功能

下面以discuz论坛为例,为单独站点开始rewrite功能:

<VirtualHost *:80>
ServerAdmin ywl@16399.com
DocumentRoot “d:/site/bbs.abc.cn”
ServerName bbs.abc.cn

LoadModule rewrite_module modules/mod_rewrite.so

<Directory “d:/site/bbs.abc.cn”>
Options Indexes MultiViews

Options FollowSymLinks
AllowOverride All

order allow,deny
Allow from all
Options FollowSymLinks
</Directory>

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)/archiver/((fid|tid)-[\w\-]+\.html)$ $1/archiver/index.php?$2
RewriteRule ^(.*)/forum-([0-9]+)-([0-9]+)\.html$ $1/forumdisplay.php?fid=$2&page=$3
RewriteRule ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/viewthread.php?tid=$2&extra=page\%3D$4&page=$3
RewriteRule ^(.*)/space-(username|uid)-(.+)\.html$ $1/space.php?$2=$3
RewriteRule ^(.*)/tag-(.+)\.html$ $1/tag.php?name=$2
</IfModule>

</VirtualHost>

9 thoughts on “discuz论坛中启用rewriterurl功能

  1. Pingback: How To Make Money Fast 2020

  2. Pingback: effect

  3. Pingback: 안전바카라

  4. Pingback: generic viagra fast delivery

  5. Pingback: sustanon 350 dragon pharma

  6. Pingback: canadian healthcare viagra

  7. Pingback: Depression Organic Medication

  8. Pingback: ปล่อยเงิน สุรินทร์

  9. Pingback: ayah doyan mobile legend

Comments are closed.