Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

Commit

Permalink
pc보기에서 사용후기와 사용문의 개별페이지 검색엔진에서 제외되게금 meta태그 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
thisgun committed Jun 14, 2017
1 parent c43601c commit 404367f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
11 changes: 11 additions & 0 deletions shop/itemqa.php
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
11 changes: 11 additions & 0 deletions shop/itemuse.php
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit 404367f

Please sign in to comment.