121.143.125.95 2007/08/28 (19:57:57)
|
|
°¡´ÉÇÕ´Ï´Ù. index ÆÄÀÏ¿¡¼ Á¢¼Ó µµ¸ÞÀκ°·Î ÇÏÀ§Æú´õ³ª ÆÄÀÏÀ» ÁöÁ¤ÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù. ¿¹Á¦¼Ò½º´Â ´ÙÀ½°ú °°½À´Ï´Ù.
´ÙÁßµµ¸ÞÀÎ ¼ÂÆýà ¾Æ·¡¿Í°°ÀÌ index.html ÆÄÀÏÀ» ÀÛ¼ºÇÕ´Ï´Ù. =============================================================== <? if($HTTP_HOST == "domain1.com" || $HTTP_HOST == "www.domain1.com") { $target = "/path/domain1.html"; // ù¹ø° µµ¸ÞÀÎ ÆäÀÌÁö °æ·Î } else if($HTTP_HOST == "domain2.com" || $HTTP_HOST == "www.domain2.com") { $target = "/path/domain2.htm"; // µÎ¹ø° µµ¸ÞÀÎ ÆäÀÌÁö °æ·Î } else { $target = "/fundamental.htm"; // ±âº»ÀûÀ¸·Î º¸¿©Áú ÆäÀÌÁö °æ·Î } ?> <html> <title>My Internet Space - G3.cc</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 == "domain1.com" || $HTTP_HOST == "www.domain1.com") { ?> <script LANGUAGE="JavaScript">location.replace('http://www.domain1.com/index1.html');</script> <? } else if($HTTP_HOST == "domain2.com" || $HTTP_HOST == "www.domain2.com") { ?> <script LANGUAGE="JavaScript">location.replace('http://www.domain2.com/index2.html');</script> <? } ?>
===============================================================
À§¿Í°°ÀÌ ÀÛ¼ºÇϽøé ÇÑ°³ÀÇ °èÁ¤¿¡ ¿©·¯°³ÀÇ µµ¸ÞÀÎÀ» »ç¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù. Âü°íÇϼż ÀÀ¿ëÇÏ½Ã¸é ´Ù¾çÇÏ°Ô È°¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.
°¨»çÇÕ´Ï´Ù.
|