Develop

[php] XE 스킨에서 특정 도메인 리다이렉션

by hooni posted Jan 28, 2015
?

Shortcut

PrevPrev Article

NextNext Article

ESCClose

Larger Font Smaller Font Up Down Go comment Print

스킨에 setting.html 파일 상단 내용임..

setting.html 파일 첨부함

<!-- picomax -->
{@
	$chk_request_url = Context::getRequestUrl();
}

<!--@if(strstr($chk_request_url, "hooni.net/"))-->
{@
	$res_request_url = str_replace("hooni.net/", "hooni.net/", $chk_request_url);
	echo "--->".$chk_request_url." / ".$res_request_url;
	echo "<script>window.location.assign(.$res_request_url.)</script>";
	exit;
}
<!--@end-->
<!-- picomax -->