× 자유 게시판

sarc.io에서 가장 편한 공간입니다. 어떤 글도 환영합니다.

영풍문고 홈페이지 왜 맥에서..

  • appsroot
    (appsroot)
  • appsroot's Avatar 이 글의 작성자
  • Offline
  • Newbie
  • Newbie
더보기
23 Mar 2014 02:00 - 23 Mar 2014 02:01 #90 작성자: appsroot
appsroot 님의 글: 영풍문고 홈페이지 왜 맥에서..
오늘 찾아볼 책이 있어 인터넷 서점을 몇 군데 검색을 하였는데, 영풍문고( www.ypbooks.co.kr ) 가 자꾸 제 맥북에서 모바일 페이지로 열리고 있었습니다.

사파리로도 크롬으로도 마찬가지였습니다. PC 로 접속하면 정상적으로 나오고요.

그래서 영풍문고의 index.html 을 확인하여 보았더니,

<html>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<meta http-equiv="Pragma" content="no-cache" />
<title>▒ 인터넷 영풍문고 - 대한민국 지식정보 문화의 중심 </title>
<noscript>
        <meta http-equiv="refresh" content="0; URL=http://www.ypbooks.co.kr/noscript.html" />
</noscript>
<script>
var ua = window.navigator.userAgent.toLowerCase();
//alert(ua);
if ( /android/.test(ua) || /mac os/.test(ua) || /iphone/.test(ua) || /opera/.test(ua) || /bada/.test(ua) ) {
        location.href = "/m_main.yp";
} else {
        location.href = "/kor_index.yp";
}
</script>
<!-- <meta http-equiv="refresh" content="0;url=/kor_index.yp" /> -->
</head>
</html>

위와 같이 맥 컴퓨터는 무조건 모바일로 가도록 설정을 해 놓았더군요. 정확한 이유는 알 길이 없네요. 만일 일반 PC 페이지(kor_index.yp) 가 IE 에 최적화되어 있어 이렇게 해놓은 것이라면, 브라우저에 따라 분기를 하도록 했어야 할 것 같구요. PC 에서 사파리나 크롬을 사용할 수도 있으므로..
Time to create page: 0.056 seconds
Powered by Kunena Forum