There are three languages ​​on the site: Russian (default), English, Ukrainian. They are turned on by clicking on a specific link, after which the user writes a cookie (ru, en, ua) and connects the dictionary of his language.

The search robot can follow the link, but cannot write a cookie. Accordingly, only the default version will be indexed. How to make it index and other versions?

Ps: create separate versions using subdomains (en.site.ru) is not suitable.

  • explain in more detail how I can get to any page of your site in any language by urla? if not, then how do you think Google will give users links to all your pages in different languages? -
  • I do not know. For example, VKontakte - it has multilanguage, but doesn’t have versions like en.vk.com, but as a result, a text in English will be displayed on a request to Google from the USA. - Denis Pavlik

2 answers 2

How to make it index and other versions?

No This approach will not work.

Use one of the three options:

  1. The most correct one you deny is subdomains of the form en.site.com , ru.site.com and ua.site.com . At the same time, site.com may be either a list of available languages ​​or an automatic redirect on the site.com domain. In the extreme case, there may be content in a language that has been defined automatically, but doing so, as far as I know, is not recommended.
  2. The second option is to put the language in the link itself, for example site.com/en/ , site.com/ru/ and site.com/ua/ . Otherwise, everything is similar to the previous paragraph.
  3. The third option is to buy regional domains: site.ru , site.ua and site.com (for English-speaking users).

If you use options 1 and 2, it would also be ideal (but not necessary) that the main domain be not .ru , but some of the international zone, for example .com , .org or .net .

Also do not forget to configure the connection between pages with different languages ​​so that search engines can understand them. More on this topic:

    Create folders for each language. At the head of each page, apply the hreflang attributes. Please note that the hreflang = "x-default" attribute denotes the best version of this page in this language, i.e. This attribute replaces the canonical attribute. Therefore, these attributes are not recommended to combine on one page. Google Help How to use the hreflang attribute to specify a language or regional URL .

    • Is it to make three identical sites in different languages? - Denis Pavlik
    • If so, as I wrote above, this option is not welcome. - Denis Pavlik
    • Not. Just create folders for these languages. For example: example.com/ru/ ++ example.com/en/ ++ example.com/ua/. - nikant25
    • Scripts after all will be placed in all folders equally. For example, I will need to place the index.php file in 3 folders in different languages. For example, if I need to change it, I will have to make changes in three folders. - Denis Pavlik
    • First, the index file should be for the site in only one instance. This file shows your server when you request a domain name of the site. For folders with languages, you probably need to create main-ru or start-ua or something like that. - nikant25