Language strings in urls

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?

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/?

Would it make sense to use language-specific subdomains? What would you do and why?

+3
source share
5 answers

It depends on the structure of your site:

+2

, URL- ( )...

, , (.. http://example.com) Accept-Language HTTP-, . , , google.com.

, , - - , ( cookie!).

+1

, ?

, . , .

, URL-, SEO, "en", "de". , , , , "" "geschenke".

0

, ISO 639 aplha 2 1- . niftier, , - . , URI [a-z] {2}.

0

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

0
source

Source: https://habr.com/ru/post/1721784/


All Articles