Answer for What is difference between $_SERVER['HTTP_HOST'] vs $_SERVER['SERVER_NAME']?