I have a page example.com that includes a language file based on visitor's country (through IP). There is only one page but several language files.
Scenarios:
visitor in UK or any other country not supported by my languages -> example.com (language in English)
visitor from IT -> example.com (language in Italian)
The UK visitor changes the language to Italian -> example.com/it
The IT visitor changes the language to English -> example.com/en
The IT visitor who sees tha page in English, deletes the /en from the browser -> example.com (language in Italian)
HTML
I have set it like
<html lang="en">
<link rel="alternate" href="/it" hreflang="it">
Questions
- Should I also add the "en" version, that means all the available languages?
- Is my structure the correct way of doing this?
Thank you
include(en.php)
depending on the country