Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is facing an issue where the English version of their Dutch website is not being indexed by Google, despite having correct canonical tags, hreflang tags, internal links, and XML sitemap. They attempted to change the 'default local parameter' from 'en_US' to 'en', but it did not resolve the issue.
Solution:
We recommend implementing a language switcher or a dedicated root page to help with the indexing of the English pages. Alternatively, deactivating certain functions might help. While we do not have a direct solution for this issue, third-party products like Geo IP-based redirection or using a filter to implement custom exceptions for the Google User Agent via JavaScript could be beneficial. We advise against changing the default language of the installation as a solution.

If this solution does not apply to your case, or if it seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. Should you need further assistance, please open a new support ticket at WPML support forum.

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.

This topic contains 3 replies, has 1 voice.

Last updated by Marcel 7 months 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 ) Spanish (Español ) German (Deutsch )

Timezone: Europe/Madrid (GMT+02: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 ) Spanish (Español ) German (Deutsch )

Timezone: Europe/Madrid (GMT+02: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