59.17.161.32 2007/09/13 (15:14:56)
|
|
¼ºêµµ¸ÞÀÎÀº º°µµÀÇ ½ÅûÀÌ ÇÊ¿ä¾øÀÌ ¾Æ·¡¿Í °°Àº ¼Ò½º¸¦ index ÆäÀÌÁö¿¡ »ðÀÔÇÏ½Ã¸é ¹Ù·Î ¿øÇϽô ¼ºñ½ºµµ¸ÞÀÎÀ» »ý¼ºÇؼ »ç¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.
À̶§, ¼ºêµµ¸ÞÀκ°·Î ÇÏÀ§Æú´õ¸¦ public_html Æú´õ¾È¿¡ »ý¼ºÇØÁÖ¼Å¾ß ÇÕ´Ï´Ù.
<? if($HTTP_HOST == "sub1.domain.com") { echo "<script LANGUAGE='JavaScript'>location.replace('http://www.domain.com/sub1/');</script>"; } else if($HTTP_HOST == "sub2.domain.com") { echo "<script LANGUAGE='JavaScript'>location.replace('http://www.domain.com/sub2/');</script>"; } else if($HTTP_HOST == "sub3.domain.com") { echo "<script LANGUAGE='JavaScript'>location.replace('http://www.domain.com/sub3/');</script>"; } ?>
%% ¹«·áµµ¸ÞÀÎ »ç¿ë°í°´(¾ÆÀ̵ð.g3.cc)Àº ¼ºêµµ¸ÞÀÎÀ» »ý¼ºÇÏ½Ç ¼ö ¾ø½À´Ï´Ù. %% sub1, sub2, sub3... µîÀ» ¿øÇϽô ¼ºêµµ¸ÞÀÎÀ¸·Î º¯°æÇϽðí... %% domain.com À» »ç¿ëÇϽô °³º°µµ¸ÞÀÎÀ¸·Î º¯°æÇϽÅÈÄ Àû¿ëÇÏ¼Å¾ß ÇÕ´Ï´Ù.
°¨»çÇÕ´Ï´Ù.
|