<?php $ua = $_SERVER['HTTP_USER_AGENT']; if(stripos("***$ua",'android') !== false){ header("Location: http://myapp.org/m/?mobile_version=AndroidRu"); die(); } ?>