- webwater2011-01-09中级会员1586
想要把www.123.com/bbs重定向到www.123.com/bbs/
因为主站程序和BBS分开的.直接输入www.123.com/bbs得到一个404错误..用下面这样弄不行
server_name www.123.com/bbs www.123.com/bbs/;
if ($host != 'www.123.com/bbs/') {
rewrite ^/(.*)$ http://www.123.com/bbs/$1 permanent;
}这样弄访问www.123.com/bbs转址成了www.123.com/bbs/bbs/bbs/后面无数个bbs....
求解答...
