This is a scenario.
I have this website, as an example:
www.service.com which serves default English content. The site has also several domain aliases which have the word
service in another languages.
So the idea is: how to make sure, when a user that accesses the website using for example Italian alias
www.servizio.com is presented with the main website content, but only in Italian language, or Italian section of the website?
I know this largely depends on how the website is structured in terms of dealing with multi-language support.
But let's assume it isn't about languages at all. Let's assume the Italian example from above should see some other content or even page, which is also accessible (or navigable) through the main version.
Since aliases preserve the URL, is my best bet to check for the host (URL), then proceed to serve whatever content should be served based on it?