if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") { header("location: http://www.clearwooduk.com/index.shtml"); } else { header("location: http://www.clearwooduk.com/index.shtml"); }