$SiteNameURL = $_SERVER["HTTP_HOST"]; // echo $SiteNameURL; switch (strtolower($SiteNameURL)) { case "thywarrior.ca": header( 'Location: http://www.thywarrior.ca/welcome.php' ); break; case "www.thywarrior.ca": header( 'Location: http://www.thywarrior.ca/welcome.php' ); break; case "login.thywarrior.ca": header( 'Location: http://www.thywarrior.ca/welcome.php' ); break; case "forum.thywarrior.ca": header( 'Location: http://www.thywarrior.ca/welcome.php' ); break; case "files.thywarrior.ca": header( 'Location: http://files.thywarrior.net' ); break; default: header( 'Location: http://www.thywarrior.ca/index.php' ); } echo '