nginx判断是否手机访问 if ( $http_user_agent ~* "(Android|iPhone|Windows Phone|UC|Kindle|MicroMessenger |iPad)" ) { rewrite ^/(.*)$ https://要跳转的域名$uri redirect; } 如果只想匹
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号