다중 도메인에 따른 접속방법

by 조쉬 posted Mar 06, 2017
?

단축키

Prev이전 문서

Next다음 문서

ESC닫기

크게 작게 위로 아래로 댓글로 가기 인쇄

<?

if ($_SERVER[HTTP_HOST]=="aaa.com") { $index="bbs/board.php?board=tnshopmain&command=shop"; }

elseif ($_SERVER[HTTP_HOST]=="www.aaa.com") { $index="bbs/board.php?board=tnshopmain&command=shop"; }

elseif ($_SERVER[HTTP_HOST]=="bbb..com") { $index="bbs/board.php?board=tnshopmain&command=shop&config=2"; }

elseif ($_SERVER[HTTP_HOST]=="www.bbb.com") { $index="bbs/board.php?board=tnshopmain&command=shop&config=2"; }

elseif ($_SERVER[HTTP_HOST]=="ccc.com") { $index="bbs/board.php?board=tnshopmain&command=shop&config=3"; }

elseif ($_SERVER[HTTP_HOST]=="www.ccc.com") { $index="bbs/board.php?board=tnshopmain&command=shop&config=3"; }


?>

<html>

<head>

<title>타이틀</title>

<meta http-equiv="refresh" content="0;url=<?=$index?>">

</head>

</html>