if(!isset($_SERVER['HTTPS']) || $_SERVER['HTTPS'] == ""){ $redirect = "https://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; header("Location: $redirect"); } $utm_source = ($_REQUEST['utm_source']); $utm_medium = ($_REQUEST['utm_medium']); $utm_campaign = ($_REQUEST['utm_campaign']); $useragent = $_SERVER['HTTP_USER_AGENT']; $iPod = stripos($useragent, "iPod"); $iPad = stripos($useragent, "iPad"); $iPhone = stripos($useragent, "iPhone"); $Android = stripos($useragent, "Android"); $iOS = stripos($useragent, "iOS"); $DEVICE = ($iPod||$iPad||$iPhone||$Android||$iOS||$webOS||$Blackberry||$IEMobile||$OperaMini); if ($DEVICE != true) { header('Location: index.html?'. $_SERVER[QUERY_STRING]); } ?>