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
ArchLinux下安装Shadowsocks服务端ArchLinux下安装Shadowsocks服务端
Arch Linux 的官方包索引中就有 Shadowsocks 的 Python 版(包名为 shadows […]
discuz是放在子/bbs下的,在nginx新建个server添加上面两个伪静态规则,即可有效301原站所有收录的链接