Nginx 匹配 iphone Android 微信

时间:2017-07-12 23:39:44   收藏:0   阅读:508

          微信: 

           if ( $http_user_agent ~ "MicroMessenger" ){
                 rewrite ^.* https://www.taobao.com permanent;
            }   

          安卓:

            if ( $http_user_agent ~ "Android" ){
                 rewrite ^.* https://www.baidu.com permanent;
            }   

          苹果:

            if ( $http_user_agent ~ "iPhone" ){
                 rewrite ^.* https://www.jd.com permanent;
            }    



本文出自 “微风清凉” 博客,请务必保留此出处http://jiay1.blog.51cto.com/9144615/1946717

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!