Does Google change the language of my site in the indexing process?

Asked

Viewed 341 times

0

Google modifies the Culture info of the site in the indexing process? I noticed that on my page that has two languages, Google indexes only the page PT-BR version that is native to the site.

Some information:

My site runs on an IIS server, is developed on ASP.NET MVC5, internationalization occurs through Resources which is a platform resource.

The language change occurs through a button that requires the language change of the page through cookie and my server uses the cookie to change Cultureinfo:

<a href="/Home/ChangeCulture?lang=pt-br">Português</a>

<a href="/Home/ChangeCulture?lang=en-us">Inglês</a>

Exchange Cultureinfo through Cookie.

Thread.CurrentThread.CurrentCulture = new CultureInfo(languageCookie.Value)

  • It’s a little vague to understand, are there two versions of the page? Something like site.com/pt-br/pagina and site.com/en-us/pagina ? Because until then Google does not "change anything", it indexes what to identify, probably in the preferred language, depends very much on how you configured Culture info, whether it is based on the language of the user’s operating system (or browser) or by the URL.

  • @Guillhermenascimento ready, explained ;)

  • There has commented on this on the page about Multilingual and multi-regional sites google.

1 answer

2


The Google search by region, in case your probable region should return as Brazil then the results will be in Portuguese, so when browsing the results it is likely that will only return links with ?lang=pt-br

However it is possible to search the Google in English, it will be necessary you can modify the settings like this:

configurações de busca do google

So at the end look for United States:

região no google

And click save, then back to the page of google.com will appear this:

trocar para o google em inglês

Click on the link: English, ready all results will come from Google in English, then if the links are indexed correctly will definitely return the ?lang=en-us

But it’s likely that this will only work if all links contain ?lang=...., in the case of cookies I cannot say, but I believe it will only index the preferential, as I have already mentioned in the comments.

A good link on the subject (quoted by @Randrade) would be this https://support.google.com/webmasters/answer/182192?hl=pt&vid=0-736755508896-1511801893234, the link itself quotes:

Check that each version in another language can be discovered with ease

Keep content for each language in separate Urls. Do not use cookies to display translated versions of the page. Evaluate the possibility of cross-linking to each version in another language of a page. This way, a French user who accesses the German version of your page can see the version in the right language with a single click.

That is links are better than just using cookies to check, so this is what will work:

  • http://site.com/pt-br
  • http://site.com/pt-br/foo
  • http://site.com/pt-br/bar
  • http://site.com/pt-br/foo/bar/baz
  • http://site.com/en-us
  • http://site.com/en-us/foo
  • http://site.com/en-us/bar
  • http://site.com/en-us/foo/bar/baz

Or this:

  • http://pt.site.com
  • http://pt.site.com/foo
  • http://pt.site.com/bar
  • http://pt.site.com/foo/bar/baz
  • http://en.site.com
  • http://en.site.com/foo
  • http://en.site.com/bar
  • http://en.site.com/foo/bar/baz
  • 1

    Reply 10/10 along with Anderson’s comment, I noticed that it is not indexed in English, because if I search with region US, and language ING the result is the same(EN).

  • Thank you! So you’re not really using different urls, unfortunately you’ll need to change things a little bit, you’ll have to adapt it with url-rewrite (https://www.iis.net/downloads/microsoft/url-rewrite) and put the Culture info based on this.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.