index;
$mobile = $_SERVER['HTTP_USER_AGENT'];
$iphone = strpos($mobile,"iPhone");
$android = strpos($mobile,"Android");
$ipod = strpos($mobile,"iPod");
if ($iphone == true || $android == true || $ipod == true) {
header('Location: http://xxx.com.tr/m/');
}alt sayfalarda ki;$mobile = $_SERVER['HTTP_USER_AGENT'];
$iphone = strpos($mobile,"iPhone");
$android = strpos($mobile,"Android");
$ipod = strpos($mobile,"iPod");
if (($iphone == true || $android == true || $ipod == true) AND ($mdurum == "e" || $mdurum == "j" || $mdurum == "t")) {
header('Location: http://xxx.com.tr/m/');
}Yardımcı olacak arkadaşlara teşekkürler.