if(strstr($_SERVER['HTTP_USER_AGENT'], 'iPhone') || strstr($_SERVER['HTTP_USER_AGENT'], 'Android') || strstr($_SERVER['HTTP_USER_AGENT'], 'BlackBerry')) { header('Location: http://rdf-web.de/mobile.html'); exit(); } if((navigator.userAgent.match(/android/i))) { if (document.cookie.indexOf("android_redirect=false") == -1) { window.location = "http://rdf-web.de/mobile.html"; } }