Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

WordPress 6.7 has introduced a new issue that impact translations, please update WooCommerce and WPML to the latest versions before you report issues. More about this here - https://wpml.org/errata/php-error-wp-6-7-notice-function-_load_textdomain_just_in_time-was-called/
Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Europe/Madrid (GMT+01:00)

This topic contains 3 replies, has 1 voice.

Last updated by Marcel 15 hours, 4 minutes ago.

Assisted by: Marcel.

Author Posts
November 20, 2024 at 2:57 pm #16425267

nielsv-24

Background of the issue:
I am trying to have my website, which is in Dutch, indexed by Google in its English translation using WPML. The canonical tags, hreflang tags, internal links, and XML sitemap are all correct. I also tried changing the 'default local parameter' from 'en_US' to 'en', but it did not work. The issue can be seen on Google Search Console: hidden link and hidden link

Symptoms:
Google is not indexing the English pages of my website.

Questions:
Why is Google not indexing the English version of my website?
What steps can I take to ensure the English pages are indexed by Google?

November 20, 2024 at 4:09 pm #16425601

Marcel
Supporter

Languages: English (English ) German (Deutsch )

Timezone: Europe/Madrid (GMT+01:00)

Hi,

the issue occurs because you have enabled the browser language redirect option. This setting also redirects the Google Bot to English, as the user agent of the crawler is configured to that language.

I recommend reviewing this documentation: How browser language redirect affects Google indexing. If you prefer not to redirect the Google crawler, consider disabling this option.

Best regards,
Marcel

November 22, 2024 at 9:24 am #16432762

nielsv-24

Hi Marcel, Thanks for your response. I understand that the solution is to disable the browser language redirect option. Then Google crawlers will index the English version of the site. But English-speaking customers will then land on the Dutch pages, after which they have to switch the language switcher themselves, is that correct?

Both are actually undesirable:
1. With language redirection without indexing by Google.
2. Without language redirection, where the customer has to use the language switcher themselves.

Is there no other solution? Or is WPML working on it?

Additional. At the moment, the default language is Dutch. If I change the default language to English, that will affect all existing content. What problems will I encounter there?

November 22, 2024 at 9:35 am #16432857

Marcel
Supporter

Languages: English (English ) German (Deutsch )

Timezone: Europe/Madrid (GMT+01:00)

Hi,

Yes, that’s correct. This is why we recommend having either a language switcher or a dedicated root page or deactivate the function.

We are not working on a solution for this. However, there are several third-party products available that can provide functionality such as Geo IP-based redirection. Alternatively, you can use a filter and implement custom exceptions specifically for the Google User Agent via JS.

I wouldn’t recommend changing the default language of the installation to address this issue.

Best regards,
Marcel