답변 2개
채택된 답변
+20 포인트
아래 소스를 /index.php 또는 /index.html 상단에 넣어주시면 됩니다.
<?php
$arr_browser = array ("iPhone","iPod","IEMobile","Mobile","lgtelecom","PPC");
for($indexi = 0 ; $indexi < count($arr_browser) ; $indexi++) {
if(strpos($_SERVER['HTTP_USER_AGENT'],$arr_browser[$indexi]) == true){
header("Location: http://이동할주소");
exit;
}
}
?>
답변을 작성하려면 로그인이 필요합니다.