네이버블러그 도메인을 고정시켜 연결시 모바일에서 크기 문제 문의 드립니다.
본문
네이버블러그를 도메인을 고정으로 연결하여 주소창에 도메인을 보여주려고 합니다.
피시에는 정상적으로 잘 되는데
모바일에서는 피시에서 모바일버전 부른것처럼 크기가 제대로 나오질 않습니다.
(index.php 에서 도메인 고정시키고 index0.php에서 피시 모바일 분리)
여러방법을 사용했는데도 되지를 않고 도메인 주소를 포기하고 네이버블러그 주소로 연결하면 정상적으로 작동 됩니다.
네이버 자체 문제인가 의심도 들고요..
혹시 아시는 분 있을까요?
현재는 index0.php 피시 모바일 분리시키면서 그누를 사용합니다만
그누를 사용하지 않고 php, 자바의 location, header 다 사용해도 똑같은 결과가 나옵니다.
---------------------------
ndex.php 도메인고정
<html>
<head>
<meta http-equiv="Content-Type" content= "text/html; charset=utf-8" />
<title>타이틀</title>
</head>
<frameset rows="*" border="0" >
<frame src="index0.php" scrolling="no" marginwidth="0" marginheight="0" noresize> //여기가 실제로 페이지가 이동되는 프레임
</frameset>
---------------------------
ndex0.php 피시 모바일 분리
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content= "text/html; charset=utf-8" />
</head>
<body>
<?php
include_once('./_common.php');
if (G5_IS_MOBILE) {
header("Location: https://m.blog.naver.com/himnae-kr");
return;
}
header("Location: https://blog.naver.com/himnae-kr");
?>
</body>
</html>
답변 2
네이버 문제도 아닙니다.
헤더에 디바이스관련 강제로 PC 접속 하는 부분있는지 채크해보세요.
위에서 언급하신
---------------------------
ndex0.php 피시 모바일 분리
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content= "text/html; charset=utf-8" />
</head>
<body>
<?php
include_once('./_common.php');
if (G5_IS_MOBILE) {
header("Location: https://m.blog.naver.com/himnae-kr");
return;
}
header("Location: https://blog.naver.com/himnae-kr");
?>
</body>
</html>
이 영역을
다음과같이 변경해보세요
ndex0.php
<?php
include_once('./_common.php');
if (G5_IS_MOBILE) {
header("Location: https://m.blog.naver.com/himnae-kr");
return;
}
header("Location: https://blog.naver.com/himnae-kr");