 |
|
|  |
|
 |
16년 전 |
만약 두개의 도메인(www.musictrot.com과 www.xtx.kr)이 있다면...
일단 두개의 도메인에서 열려야할 다른 내용의 메인페이지가 있어야겠죠
임의로 이름을 붙여서 musictrot.php와 dajuji.php로 하겠습니다.
그리고 index.php 파일의 내용을 이렇게 작성하면 됩니다
<?
if ($_SERVER[HTTP_HOST]=="www.musictrot.com") {
$index="musictrot.php";
} elseif ($_SERVER[HTTP_HOST]=="musictrot.com") {
$index="musictrot.php";
} elseif ($_SERVER[HTTP_HOST]=="www.xtx.kr") {
$index="dajuji.php";
} elseif ($_SERVER[HTTP_HOST]=="xtx.kr") {
$index="dajuji.php";
}
include $index;
?> |
|
추천 : 404 |
추천
목록
|
|
|  |
|