What is the difference between HTTP_HOST and SERVER_NAME in PHP?
HTTP_HOST
SERVER_NAME
where:
$_SERVER[\'HTTP_HOST\'
If you want to check through a server.php or whatever, you want to call it with the following:
or
Then access it with all the valid URLs for your site and check out the difference.