Chinaunix
标题:
请教nginx rewrite。
[打印本页]
作者:
biyexp
时间:
2012-10-25 15:09
标题:
请教nginx rewrite。
不懂正则,请教各位大侠
哪位哥懂nginx rewite 正则?
永久301
如果访问如下形式
http://test.one.cn/system/2012/10/24/010296772.shtml
跳转到
http://test2.tow.cn/realty/system/2012/10/24/010296772.shtml
请教了{:3_201:}
作者:
luther_5015133
时间:
2012-10-27 15:23
if ($host ~ ^test\.one\.cn) {
rewrite /(.*)
http://test2.tow.cn/realty/
$1 permanent;
}
作者:
biyexp
时间:
2012-10-31 14:34
谢谢, 我试试去
欢迎光临 Chinaunix (http://bbs.chinaunix.net/)
Powered by Discuz! X3.2