if($_SERVER['SERVER_PORT'] == 80){ header("Location: https://www.siteadi.com/register.php"); exit(); }
yada server yerine getenv kullan o daha iyi
yada getenv("HTTPS"); boş geliyosa yönlendirirsin.