301.conf 2.19 KB
location =/app.html {
    access_log /Data/logs/nginx/access.m.yohobuy.com.log  fenxi;
    return 301 http://www.yoho.cn;
}
location =/yohood.html {
    access_log /Data/logs/nginx/access.m.yohobuy.com.log  fenxi;
    return 301 http://www.yohood.cn/;
}
location ^~ /home/lottery {
    access_log /Data/logs/nginx/access.m.yohobuy.com.log  fenxi;
    return 301 https://m.yohobuy.com;
}
location ^~ /wechat {
    access_log /Data/logs/nginx/access.m.yohobuy.com.log  fenxi;
    return 301 https://m.yohobuy.com;
}
location ^~ /huodong {
    access_log /Data/logs/nginx/access.m.yohobuy.com.log  fenxi;
    return 301 https://m.yohobuy.com;
}
location ^~ /download {
    access_log /Data/logs/nginx/access.m.yohobuy.com.log  fenxi;
    return 301 http://www.yoho.cn;
}
location ^~ /appactive {
    access_log /Data/logs/nginx/access.m.yohobuy.com.log  fenxi;
    return 301 http://www.yoho.cn;
}
location =/product/new/index {
    return 301 http://m.yohobuy.com/product/new;
}
#old idc
location =/download/appsem {
    return 301 http://cdn.yoho.cn/huodong-web/appsem/appsem.html;
}
location =/app {
    return 301 http://www.yoho.cn;
}
location =/help.html {
        return 301 http://m.yohobuy.com/home/help;
}
location ^~ /trends_detail_ {
        return 301 http://guang.m.yohobuy.com;
}

#301
location = /girl {
    return 301 http://m.yohobuy.com/girls;
}
location =/invite.html {
     return 301 http://m.yohobuy.com/activity/invite/index?$args;
}

location ^~ /share_ {
     return 301 http://m.yohobuy.com/activity/invite$request_uri;
}
location = /coupon/index {
    return 301 /activity/coupon?$query_string;
}
location = /life {
    return 301 https://m.yohobuy.com;
}
location = /life/sendCoupon {
    return 301 https://m.yohobuy.com;
}
location = /life/login {
    return 301 https://m.yohobuy.com;
}
location = /life/coupon {
    return 301 https://m.yohobuy.com;
}
location = /life/getSignPackage {
    return 301 https://m.yohobuy.com;
}
location = /download/mkapp {
    return 301 https://union.yoho.cn/union/app-downloads.html;
}
location = /503.html {
    default_type application/json;
    if ($http_x_requested_with = XMLHttpRequest) {
        
        return 200 '';
    }
    return 302 http://www.yohobuy.com/;
}