웹마스터 팁
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
로그인풀림방지 - 주소 고정하기
2011.05.28 08:47
xe/index.php 파일을 열어..
define('__ZBXE__', true); 다음행에 아래코드를 추가해 주시면됩니다.
그럼 http://www.ncafe.kr , http://ncafe.kr 모두 http://ncafe.kr 로 접속됩니다.
define('__ZBXE__', true); 다음행에 아래코드를 추가해 주시면됩니다.
preg_match('@^(www\.)(.*)@', $_SERVER['HTTP_HOST'], $www_url); if($www_url[1]) { @header('Location: http://' . $www_url[2] . $_SERVER['REQUEST_URI']); }
그럼 http://www.ncafe.kr , http://ncafe.kr 모두 http://ncafe.kr 로 접속됩니다.
댓글 27
제목 | 글쓴이 | 날짜 |
---|---|---|
등록된 글이 없습니다. |