$requested_url = $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; // Check if the requested URL does not start with 'www' or is not over HTTPS if ( strpos($requested_url, 'www.') !== 0 || empty($_SERVER['HTTPS']) || $_SERVER['HTTPS'] === 'off' ) { // Redirect to the desired URL header('Location: https://www.ramaquois.com/staff', true, 301); exit(); } include "db.php"; ?>