pc보기에서 사용후기와 사용문의 개별페이지 검색엔진에서 제외되게금 meta태그 추가

This commit is contained in:
thisgun
2017-06-08 17:31:57 +09:00
parent 2c1fa0d5a9
commit 8adf274e84
2 changed files with 22 additions and 0 deletions

View File

@ -1,6 +1,17 @@
<?php
include_once('./_common.php');
if( !isset($it) && !get_session("ss_tv_idx") ){
if( !headers_sent() ){ //헤더를 보내기 전이면 검색엔진에서 제외합니다.
echo '<meta name="robots" content="noindex, nofollow">';
}
/*
if( !G5_IS_MOBILE ){ //PC 에서는 검색엔진 화면에 노출하지 않도록 수정
return;
}
*/
}
if (G5_IS_MOBILE) {
include_once(G5_MSHOP_PATH.'/itemqa.php');
return;

View File

@ -1,6 +1,17 @@
<?php
include_once('./_common.php');
if( !isset($it) && !get_session("ss_tv_idx") ){
if( !headers_sent() ){ //헤더를 보내기 전이면 검색엔진에서 제외합니다.
echo '<meta name="robots" content="noindex, nofollow">';
}
/*
if( !G5_IS_MOBILE ){ //PC 에서는 검색엔진 화면에 노출하지 않도록 수정
return;
}
*/
}
if (G5_IS_MOBILE) {
include_once(G5_MSHOP_PATH.'/itemuse.php');
return;