I have a website that is totally in French. I plan to have an english version since few months. Everything work fine, people can switch their language and the session handle their language.
The problematic is that now I have bought a domain that is different of the french one and I guess it will require to point to the same sub-domain of the host.
I guess that I will need to make some code to check the domain name and if the user is coming to the server with the english one to switch the session to the english language otherwise to use the french language. Am I wrong or not?
I think I will proceed that way but many other part of the website might be completly different like Ads and Images. Is the best way to handle multilanguage website is to make many comparison of the language for these Ads and Images? or to make a duplicate of the website on an other sub-domain and link the new domain to the new folder (I really think that duplicating will be worst for the long run).
Any advice would be appreaciate.
(Both questions in this question are bolded)