server { listen 80 default; rewrite ^/bbs/(.*)$ http://beishe.cc/$1 permanent; rewrite ^/(.*)$ http://beishe.cc/$1 permanent; access_log off; }
nginx 子目录 301
Categories:
Related Post
beishe.cc Discuz!x3 数据库字典beishe.cc Discuz!x3 数据库字典
beishe.cc Discuz!x3 数据库字典 pre_forum_post 论坛回复表 pre_foru […]
ArchLinux下安装Shadowsocks服务端ArchLinux下安装Shadowsocks服务端
Arch Linux 的官方包索引中就有 Shadowsocks 的 Python 版(包名为 shadows […]
discuz是放在子/bbs下的,在nginx新建个server添加上面两个伪静态规则,即可有效301原站所有收录的链接