Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/213.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 移动站点的URL重定向_Android_Iis_Mobile_User Agent - Fatal编程技术网

Android 移动站点的URL重定向

Android 移动站点的URL重定向,android,iis,mobile,user-agent,Android,Iis,Mobile,User Agent,由于Android Mobile和Android Tablet的用户代理相同,我无法过滤Android Tablet请求,因此我可以重定向到桌面版本而不是移动站点 IIS 7 这是不正确的。移动Android在用户代理头中有“Mobile”字符串。平板电脑Android没有 看到这个了吗 因为Android Mobile和Android平板电脑的用户代理相同,所以不正确。见此: for {HTTP_USER_AGENT} blackberry|iphone|ipod|android|windo

由于Android Mobile和Android Tablet的用户代理相同,我无法过滤Android Tablet请求,因此我可以重定向到桌面版本而不是移动站点

IIS 7


这是不正确的。移动Android在用户代理头中有“Mobile”字符串。平板电脑Android没有

看到这个了吗

因为Android Mobile和Android平板电脑的用户代理相同,所以不正确。见此:
for {HTTP_USER_AGENT}

blackberry|iphone|ipod|android|windows\ ce|htc|midp|j2me|palm|nokia|symbian|sonyeric|motorola|motorazr|motorizr|motorokr|mot\-|moto(v|e|q).+|samsung|^sch\-|^sgh\-|^lg\-