Multiple Session ID with URI

I work on a multilingual website (php / mysql) and my question is what would be the best solution for identifying the language - sessions / cookies or identifying URIs. I mean SEO, which would be more accurate.

thank

+3
source share
4 answers

There are various types of projects that should not use the same language implementation.

Let me give you a few examples:

  • The first project has one domain name, say example.com. This website should be available in three languages. To allow the search engine to clearly scan and index each language - the right solution here would pass it by url. example.com/fr/for French.

  • , example.fr, example.co.uk. , . , , cookie . ( ).

1, , 2, example.co.uk/fr/ example.fr , SEO.

+3

URI, - , / . , (= > URL).

: URI - , cookie/, , Accept-Language -Header. , ( - ), cookie ( ).

+1

URL. - '/en/' . , mod_rewrite .

+1

/ cookie, , - . (?), . - , Mandarin, , , URI - .

, URI, - , : http://domain.tld/localized/fr/ , GET: http://domain.tld/?l=4 4

, , : http://domain.fr http://fr.domain.tld

Regarding SEO, I believe that the best way would be to adhere to the top-level domain standards and set up a separate domain for each language in which you want to host the site ( http://domain.fr, http://domain.ruetc.).). Of course, this would mean buying more domains, so if this is not an option, my second choice would be to create subdomains for each langauge, for example: http://fr.domain.tldandhttp://ru.domain.tld

+1
source

All Articles