- sujian9192011-02-07金牌会员10554
关于.htaccess的问题
比如我的论坛程序(DZ 7.2)网站,举例:http://www.
XXOO
.net/
bbs
/
但因网站发展的需要,现在要把网站的域名改成:
bbs.
XXOO.net怎样把下面的网址通过.htaccess
http://www.XXOO.net/
bbs
/forum-2-1.html
变成下面的网址
http://
bbs
.XXOO.net/forum-2-1.html**
在我的下面已经有一个.htaccess文件了。内容如下:
**- # 将 RewriteEngine 模式打开
- RewriteEngine On
- - RewriteBase /bbs
- # Rewrite 系统规则请勿修改
- RewriteRule ^archiver/((fid|tid)-[\w\-]+\.html)$ archiver/index.php?$1
- RewriteRule ^forum-([0-9]+)-([0-9]+)\.html$ forumdisplay.php?fid=$1&page=$2
- RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ viewthread.php?tid=$1&extra=page\%3D$3&page=$2
- RewriteRule ^space-(username|uid)-(.+)\.html$ space.php?$1=$2
- RewriteRule ^tag-(.+)\.html$ tag.php?name=$1复制代码