$full_url = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https://" : "http://") . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; //https 도메인 redirect 하기 if (strpos($full_url, "test.com") !== false) { // header("Location: https://www.aaaaa.com".$_SERVER['REQUEST_URI']); exit; } ?>