全球主机交流论坛
标题:
别聊天了。帮我回答问题~ NGINX 301 帮忙啊
[打印本页]
作者:
ZZPPP.COM
时间:
2013-1-21 20:51
标题:
别聊天了。帮我回答问题~ NGINX 301 帮忙啊
本帖最后由 ZZPPP.COM 于 2013-1-21 20:56 编辑
域名访问
123.123.com/b/aaa.html 301跳转到 333.bbb.com/eee.html
123.123.com/x/xxx.html 301跳转到 rrrrrr.com/yyyyy.html
123.123.com/xuuu/5465.html 301跳转到 trtrtr.com/adad/eeff.html
怎么写啊。 应该能看懂吧?
NGINX
本来用SAE 的 不稳定。换家了。 转向也要改 不会改了
这是SAE用的
- rewrite: if( in_header["Host"] ~ "xx.zzppp.com" && path ~ "^/b/x51.html(.*)" ) goto "http://www.baidu.com/baidu/baidu.html$1 [L,QSA,R=301]"
- rewrite: if( in_header["Host"] ~ "xx.zzppp.com" && path ~ "^/b/x/2.html(.*)" ) goto "http://www.yahoo.com/baidu/index.html$1 [L,QSA,R=301]"
- rewrite: if( in_header["Host"] ~ "xx.zzppp.com" && path ~ "^/b/x/3.html(.*)" ) goto "http://www.google.com/baidu/index.html$1 [L,QSA,R=301]"
复制代码
作者:
spencer
时间:
2013-1-21 20:51
提示:
作者被禁止或删除 内容自动屏蔽
作者:
完美
时间:
2013-1-21 20:52
表达能力惊人。。。
作者:
☆校长☆
时间:
2013-1-21 21:14
无解,看不懂
欢迎光临 全球主机交流论坛 (https://fd.vvwvv.eu.org/)
Powered by Discuz! X3.4