function Redirect($url, $permanent = false) { header('Location: ' . $url, true, $permanent ? 301 : 302); exit(); } Redirect('https://snuffstore.co.uk/mobile/index.php', false);