Which would be a good way to handle URLs on a website that offers multiple languages but has one main language (in my case, English).
What should be the address of the English homepage? http://example.com/? http://example.com/en/? http://example.com/english/? Other?
http://example.com/
http://example.com/en/
http://example.com/english/
What should be the address of the home page in another language, say, in German? http://example.com/german/? http://example.com/de/? http://example.com/deutsch/?
http://example.com/german/
http://example.com/de/
http://example.com/deutsch/
Would it make sense to use language-specific subdomains? What would you do and why?
It depends on the structure of your site:
, .
, . Wikipedia (http://de.wikipedia.org/), .
, - , "" .
, , ( .) /en/, /de/, .., , .
/en/
/de/
, , .
, , , : /home?lang=en
/home?lang=en
Google , : http://www.google.com/search?hl=de&q=foo ( TLD).
, URL- ( )...
, , (.. http://example.com) Accept-Language HTTP-, . , , google.com.
http://example.com
Accept-Language
, , - - , ( cookie!).
, ?
, . , .
, URL-, SEO, "en", "de". , , , , "" "geschenke".
, ISO 639 aplha 2 1- . niftier, , - . , URI [a-z] {2}.
I think that the best stylish solution is to use the address in the format http://yourdomain.comas the URL of the main page and the identification of localized web pages with ISO 639-1 language codes
http://yourdomain.com
Source: https://habr.com/ru/post/1721784/More articles:web.config - automatically create release version - debuggingВ чем разница между jetspeed 2 и плутоном? - javaThe best approach to the action of a double state - javaInstall BasicEditField Filter on BlackBerry - blackberryAccessing a dynamically loaded DLL (using LoadLibrary) in Visual Basic 6 - windowsC # how to handle internet breaks - c #How to work with memory leak of a third-party DLL (without source code) accessed by the Tomcat application? - javaMixing Audio on iPhone - iphoneСоздание UITableViewCell с кнопкой добавления фотографии, например, в приложении "Контакты" - iphoneHow to marshal a DataHandler annotated as @XmlAttachmentRef with JAXB? - javaAll Articles