XpressEngine

로그인풀림방지 - 주소 고정하기

by Luatic™ posted May 28, 2014
?

단축키

Prev이전 문서

Next다음 문서

ESC닫기

+ - Up Down Comment Print
Extra Form
출처 http://www.xpressengine.com/tip/19787880

xe/index.php 파일을 열어..

define('__ZBXE__', true); 다음행에 아래코드를 추가해 주시면됩니다.


1
2
3
4
preg_match('@^(www\.)(.*)@',$_SERVER['HTTP_HOST'],$www_url);
if($www_url[1]) {
@header('Location: http://' .$www_url[2] .$_SERVER['REQUEST_URI']);
}



TAG •

Articles

1 2 3 4 5 6