If I configure a sub domain on a hosting server, and the domain/sub domain point at the same directory to filter through a common front-controller, would it be accurate to perform a check on $_SERVER['SERVER_NAME'] in said front-controller, to determine from where a user has accessed the site?