I have a domain, www.domain.com and www.domain.com, the content is the same as the difference in the configuration file with the messages that will be loaded.
What is the best technique for finding the location that the user is accessing? so I can set via PHP which configuration file to load.