if ($_SERVER['SERVER_NAME'] != 'bankofwhittier.wsmtechs.net') { if (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) { $secure_connection = true; } //Detect Connection State if($secure_connection<>true){ //If not secure redirect $currentpage = $_SERVER['REQUEST_URI']; //detect landing page ###Redirect### str_replace("www.bankofwhittier.com","",$currentpage); echo ""; ############ } } ?>