도메인 점프 (Domain Jump) > php

본문 바로가기

php

도메인 점프 (Domain Jump)

작성일 12-02-16 10:42

페이지 정보

작성자서방님 조회 387회 댓글 0건

본문

### asp Code ###

<%
if request.servervariables("server_name")="kookmintv.net" then
response.redirect("/1")
else if request.servervariables("server_name")="www.kookmintv.net" then
response.redirect("/1")
else
response.redirect("/2")
end if
%>

 


$$$ php Code $$$

 

<?
if(($http_host=="kookmintv.net")or($http_host=="www.kookmintv.net"))
{
header("location: /");
}
elseif(($http_host=="hcntv.co.kr")or($http_host=="www.hcntv.co.kr"))
{
header("location: /home/qrix");
}
elseif(($http_host=="qrixtv.co.kr")or($http_host=="www.qrixtv.co.kr"))
{
header("location: /home/qrix");
}
else
?>

 

댓글목록

등록된 댓글이 없습니다.

게시물 검색
Copyright © 서방님.kr All rights reserved.
PC 버전으로 보기