Thank you very much in advance for any advise or help regarding this topic.
I’m developing a website for a Spanish company that is currently under a international expansion process in France and UK.
Each of those regional offices have specific products and services, so each international version of the site will have a similar design with different content. This is why I’ve chosen to use a sub-folder structure, with a /fr and a /en variant for each regional site (as per Google recommendations), in the same way that Apple does on its international websites.
I would like that, depending on the language of the operating system of the computer visiting the site, the visitor gets automatically forwarded to its corresponding sub-domain.
Sadly, I’ve been following various tutorials on using a script to replicate this behaviour without any success. It doesn’t matter which language has my testing computer, it always loads the same home page.
I would greatly appreciate any suggestion or guide on how to achieve this function.
This is my test site with the script I’ve found: