$mobile = "http://www.purehearts.co.jp/mobile/index.php"; if(strstr($_SERVER['HTTP_USER_AGENT'], "KDDI")) { /* au �̏ꍇ */ header( "Location: $mobile"); } elseif (strstr($_SERVER['HTTP_USER_AGENT'], "DoCoMo")) { /* docomo�̏ꍇ */ header( "Location: $mobile"); } elseif (strstr($_SERVER['HTTP_USER_AGENT'], "J-PHONE")) { /* J-PHONE �g�т̏ꍇ */ header( "Location: $mobile"); } elseif (strstr($_SERVER['HTTP_USER_AGENT'], "UP.Browser")) { /* au�C�c�[�J�[�ȂǁiDoCoMo�̈ꕔ�@����܂܂��j*/ header( "Location: $mobile"); } else { /* ����ȊO */ } ?>