µµ¸ÞÀÎ °ü·Ã           2008/02/21 19:31:39     6971     0   
   ´ÙÁßµµ¸ÞÀÎ ¼ÂÆùæ¹ý
´ÙÁßµµ¸ÞÀÎ ¼ÂÆýà ¾Æ·¡¿Í°°ÀÌ index.html ÆÄÀÏÀ» ÀÛ¼ºÇÕ´Ï´Ù.
===============================================================
<?
  if($HTTP_HOST == "µµ¸ÞÀÎ1.com" || $HTTP_HOST == "www.µµ¸ÞÀÎ1.com") {
    $target = "/°æ·Î/µµ¸ÞÀÎ1.html"; // ù¹ø° µµ¸ÞÀÎ ÆäÀÌÁö °æ·Î
  } else if($HTTP_HOST == "µµ¸ÞÀÎ2.com" || $HTTP_HOST == "www.µµ¸ÞÀÎ2.com") {
    $target = "/°æ·Î/µµ¸ÞÀÎ2.htm"; // µÎ¹ø° µµ¸ÞÀÎ ÆäÀÌÁö °æ·Î
  } else {
    $target = "/±âº»ÆäÀÌÁö.htm"; // ±âº»ÀûÀ¸·Î º¸¿©Áú ÆäÀÌÁö °æ·Î
  }
?>
<html>
<title>Á¦¸ñ</title>
<frameset rows="1*">
  <frame src=<?=$target?> name="main" scrolling="auto" marginwidth="0" marginheight="0" noresize>
</frameset>
</html>
===============================================================

À§¿Í°°Àº ÇÁ·¹ÀÓ¹æ½Ä ÀÌ¿Ü¿¡ ÆäÀÌÁö¸¦ ¼ø°£ÀûÀ¸·Î ¸®Ç÷¹À̽º½ÃÄÑ Áֽô ¹æ¹ýÀÌ ÀÖ½À´Ï´Ù.

index.html , index1.html , index2.html ÀÇ ¼¼°¡Áö ÆÄÀÏÀÌ ÀÖ°í, index1.html Àº domain1.comÀ», index2.html Àº domain2.html ÀÇ µÎ°¡Áö ȨÆäÀÌÁö¸¦ ÀÛ¼ºÇÕ´Ï´Ù.

index.html ¿¡´Â ´ÙÀ½°ú °°Àº ¼Ò½º¸¦ »ðÀÔÇÕ´Ï´Ù.

<? if($HTTP_HOST == "µµ¸ÞÀÎ1.com" || $HTTP_HOST == "www.µµ¸ÞÀÎ1.com") { ?>
<script LANGUAGE="JavaScript">location.replace('http://www.µµ¸ÞÀÎ1.com/index1.html');</script>
<? } else if($HTTP_HOST == "µµ¸ÞÀÎ2.com" || $HTTP_HOST == "www.µµ¸ÞÀÎ2.com") { ?>
<script LANGUAGE="JavaScript">location.replace('http://www.µµ¸ÞÀÎ2.com/index2.html');</script>
<? } ?>

===============================================================

À§¿Í°°ÀÌ ÀÛ¼ºÇϽøé ÇÑ°³ÀÇ °èÁ¤¿¡ ¿©·¯°³ÀÇ µµ¸ÞÀÎÀ» »ç¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.
Âü°íÇϼż­ ÀÀ¿ëÇÏ½Ã¸é ´Ù¾çÇÏ°Ô È°¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.

°¨»çÇÕ´Ï´Ù.
writer ip : 59.17.161.87 , modify 59.17.161.87 , 2008/02/21 19:37:13    

       

°ø°³°Ô½ÃÆÇ °ü·Ã Á¦·Îº¸µå4 º¸¾ÈÆÐÄ¡ ¸ðÀ½
µµ¸ÞÀÎ °ü·Ã ³×À̹ö ºí·Î±×¿¡ µµ¸ÞÀÎ ¿¬°áÇϱâ
µµ¸ÞÀÎ °ü·Ã µµ¸ÞÀÎ ¸íÀÇ º¯°æ ½Åû¼­
µµ¸ÞÀÎ °ü·Ã ¼­ºêµµ¸ÞÀÎ(2Â÷µµ¸ÞÀÎ) ¼ÂÆùæ¹ý
µµ¸ÞÀÎ °ü·Ã www ºÙÀº°Å³ª ¾ÊºÙÀº°Å³ª µ¿ÀÏÇÏ°Ô Á¢¼ÓÀ¯µµÇϱâ
µµ¸ÞÀÎ °ü·Ã ´ÙÁßµµ¸ÞÀÎ ¼ÂÆùæ¹ý
1