도메인/mobile 질문이요
본문
도메인/mobile 경로 접속시에 하얀 화면만 나옵니다
도메인/mobile 로 입력햇을시에 스크립트를 써서
다른 모바일 홈페이지로 리다이렉트 시키고 싶은데
해당 작업을 하려면 어떻게 해야될까요??ㅠ
모바일폴더 안에 인덱스파일을 수정해도 응답이없네요..
도메인/mobile 로 입력햇을시에 스크립트를 써서
다른 모바일 홈페이지로 리다이렉트 시키고 싶은데
해당 작업을 하려면 어떻게 해야될까요??ㅠ
모바일폴더 안에 인덱스파일을 수정해도 응답이없네요..
답변 2
<script type="text/javascript">
var tmpUser = navigator.userAgent;
if (tmpUser.indexOf("iPhone") > 0 || tmpUser.indexOf("iPod") > 0 || tmpUser.indexOf("Android ") > 0 ){
location.href = "모바일주소";
}
</script>
<?php
/* This will give an error. Note the output
* above, which is before the header() call */
header('Location: http://www.example.com/');
exit;
?>
해보세요
답변을 작성하시기 전에 로그인 해주세요.