| 도메인별 접속 페이지 다르게 하기 |
<? if (stristr($_SERVER[HTTP_HOST], "hostqy.com")) { $toLink = "hostqy.html"; } else if (stristr($_SERVER[HTTP_HOST], "hostqy.kr")) { $toLink = "chinahosting.html"; } else { echo "request error!!"; exit; } include $toLink; ?> hostqy.com으로 접속했을 때 hostqy.html 페이지를 보여 줍니다. hostqy.kr으로 접속했을 때 chinahosting.html 페이지를 보여 줍니다. |