= 50400 && PHP_SESSION_ACTIVE === session_status()) || (PHP_VERSION_ID < 50400 && isset($_SESSION) && session_id())) { session_write_close(); } // https://www.hostinger.com/tutorials/php-redirect // https://www.tutorialrepublic.com/faq/how-to-make-a-redirect-in-php.php // https://upcity.com/blog/6-how-to-redirect-your-site-properly/ // header('Content-type: text/html; charset=utf-8'); header('Location: ' . $url); exit(); // or die() ?>