godbird 发表于 2010-11-25 10:18:29

请教个静态化的问题

我的dz安装在BBS目录下,现在使用下面这个静态化文件可以实现,但有个问题,就是访问论坛时,前面的www自动去掉了,怎么修改下,将链接都转为www的形式呢?location /bbs/ {
            rewrite ^/bbs/archiver/((fid|tid)-[\w\-]+\.html)$ /bbs/archiver/index.php?$1 last;
            rewrite ^/bbs/forum-(+)-(+)\.html$ /bbs/forumdisplay.php?fid=$1&page=$2 last;
            rewrite ^/bbs/thread-(+)-(+)-(+)\.html$ /bbs/viewthread.php?tid=$1&extra=page%3D$3&page=$2 last;
            rewrite ^/bbs/space-(username|uid)-(.+)\.html$ /bbs/space.php?$1=$2 last;
            rewrite ^/bbs/tag-(.+)\.html$ /bbs/tag.php?name=$1 last;
      }

[ 本帖最后由 godbird 于 2010-11-25 10:19 编辑 ]

licess 发表于 2010-11-25 11:09:54

回复 1# 的帖子

可能是你绑定域名的时候不带www的在前面,www的在后面
页: [1]
查看完整版本: 请教个静态化的问题