Skip to content Skip to sidebar

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

Problem:
The client experienced a significant ranking drop and issues with Google Images visibility after migrating their site to a new server, which resulted in the disappearance of canonicals and hreflang tags. They made several technical SEO improvements to address these issues, including adjustments to hreflang output and canonicals.
Solution:
We reviewed the client's recent SEO improvements and found them technically correct and aligned with best practices for multilingual sites. The disappearance of canonical and hreflang tags due to the server migration likely contributed to the ranking volatility and indexing instability. The incorrect hreflang output in XML sitemaps might have sent conflicting signals to Google, even though the HTML hreflang implementation was correct. The client's recent improvements should help Google better understand the site structure over time. We recommend focusing on Google indexing behavior, canonical selection, image indexing, crawl stability, redirects, and possible migration-related SEO side effects for further investigation.

If these suggestions do not resolve the issue or if the solution seems outdated or irrelevant to your case, 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. If further assistance is needed, 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.

Tagged: 

This topic contains 4 replies, has 1 voice.

Last updated by lobkeB 2 months, 1 week ago.

Assisted by: Andrey.

Author Posts
May 21, 2026 at 12:42 pm #18051625

lobkeB

Hi WPML support,

We have made several technical SEO improvements over the past days and I would like to ask how important you think these improvements are for our SEO recovery.

Context:

On 21 November 2025, our site was migrated to a new server. After that migration, our canonicals and hreflang tags disappeared from the site. We only discovered this around mid-December, and they were restored after that.

At the end of November, shortly after the migration, we saw a significant ranking drop, especially on important category pages. The rankings have never fully recovered. At the end of February 2026, almost all of our image URLs also disappeared from Google Images. We still do not know exactly what caused this.

Over the past days, we fixed/changed the following:

1. We disabled hreflang output in the Yoast XML sitemaps with:
define( 'WPML_SEO_ENABLE_SITEMAP_HREFLANG', false );

This was because the sitemap hreflang output for the WooCommerce Shop Page was wrong. It reused the current language slug on all domains, instead of using the translated slugs per language/domain.

2. We kept WPML’s normal HTML hreflang output in the enabled, because this output is correct.

3. We added a filter to remove heatperformance.com from the normal HTML hreflang output, because heatperformance.com is not a true webshop language equivalent. It is a country selector / portal page.

4. On heatperformance.com itself, we now remove all hreflang output.

5. We corrected the custom WPML language settings for “America”:

* Code: US — unchanged
* Default locale: changed from US to en_US
* hreflang: changed from US to en
* Language mapping: English

This changed the .com HTML output from:

and Yoast schema "inLanguage": "US"

to:

and Yoast schema "inLanguage": "en-US"

6. We also fixed a custom WooCommerce Shop Page H1 snippet, because some domains such as Austria showed “Heated products” instead of the correct local German title.

Current setup:

* XML sitemaps no longer contain hreflang entries.
* HTML pages still contain correct WPML hreflang tags with the correct translated URLs.
* heatperformance.com is no longer included as a normal hreflang alternate.
* heatperformance.com itself has no hreflang tags.
* Canonicals and schema language values now look correct on the tested pages.

My questions:

1. From your point of view, how important are these improvements for international SEO?
2. Could the earlier disappearance of canonicals and hreflang tags after the server migration have contributed to our ranking drop?
3. Could the wrong hreflang output in the XML sitemaps have contributed to Google confusion, even though the HTML hreflang output was correct?
4. Could these improvements, made now on 21 May 2026, still help Google regain trust and gradually recover rankings?
5. Do you see any remaining WPML-related issue that could explain why our rankings and Google Images visibility have not recovered since the migration?

Thank you.

May 22, 2026 at 10:15 am #18053885

lobkeB

We found a suggested workaround online:

add_filter( 'wpml_redirect_response_code', function() {
return 301;
} );

Can you confirm whether `wpml_redirect_response_code` is an official/current WPML filter?

If yes:

* Does it affect all WPML redirects globally?
* Is it safe to use on a WooCommerce Multilingual site with separate domains per language?
* Can it be limited only to WooCommerce product category archives / translated product category slugs?
* Could it negatively affect browser language redirects, language switcher behavior, currency/language cookies, hreflang, or canonical URLs?

We only want to change the redirect status from 302 to 301 for wrong translated product category slugs on the wrong country domain, for example:
`/beheizbare-handschuhe/` on the French domain → `/gants-chauffants/`.

May 26, 2026 at 3:52 pm #18061604

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

Thank you for contacting WPML support.

I noticed that we are already assisting you with the same request in the following ticket:
https://wpml.org/forums/topic/wpml-redirects-translated-woocommerce-product-category-slugs-with-302-instead-of-301/

Carlos has already escalated your case to our team. Please continue the conversation there and wait for his update.

May 26, 2026 at 4:13 pm #18061701

lobkeB

Hi Adrey,

Thanks for your reply. Yes, Carlos is helping me with the 301 - 302 issue.
I openend this ticket for another question, but by mistake a put the 302 question in this threat.

My original question was:

Hi WPML support,

We have made several technical SEO improvements over the past days and I would like to ask how important you think these improvements are for our SEO recovery.

Context:

On 21 November 2025, our site was migrated to a new server. After that migration, our canonicals and hreflang tags disappeared from the site. We only discovered this around mid-December, and they were restored after that.

At the end of November, shortly after the migration, we saw a significant ranking drop, especially on important category pages. The rankings have never fully recovered. At the end of February 2026, almost all of our image URLs also disappeared from Google Images. We still do not know exactly what caused this.

Over the past days, we fixed/changed the following:

1. We disabled hreflang output in the Yoast XML sitemaps with:
define( 'WPML_SEO_ENABLE_SITEMAP_HREFLANG', false );

This was because the sitemap hreflang output for the WooCommerce Shop Page was wrong. It reused the current language slug on all domains, instead of using the translated slugs per language/domain.

2. We kept WPML’s normal HTML hreflang output in the enabled, because this output is correct.

3. We added a filter to remove heatperformance.com from the normal HTML hreflang output, because heatperformance.com is not a true webshop language equivalent. It is a country selector / portal page.

4. On heatperformance.com itself, we now remove all hreflang output.

5. We corrected the custom WPML language settings for “America”:

* Code: US — unchanged
* Default locale: changed from US to en_US
* hreflang: changed from US to en
* Language mapping: English

This changed the .com HTML output from:

and Yoast schema "inLanguage": "US"

to:

and Yoast schema "inLanguage": "en-US"

6. We also fixed a custom WooCommerce Shop Page H1 snippet, because some domains such as Austria showed “Heated products” instead of the correct local German title.

Current setup:

* XML sitemaps no longer contain hreflang entries.
* HTML pages still contain correct WPML hreflang tags with the correct translated URLs.
* heatperformance.com is no longer included as a normal hreflang alternate.
* heatperformance.com itself has no hreflang tags.
* Canonicals and schema language values now look correct on the tested pages.

My questions:

1. From your point of view, how important are these improvements for international SEO?
2. Could the earlier disappearance of canonicals and hreflang tags after the server migration have contributed to our ranking drop?
3. Could the wrong hreflang output in the XML sitemaps have contributed to Google confusion, even though the HTML hreflang output was correct?
4. Could these improvements, made now on 21 May 2026, still help Google regain trust and gradually recover rankings?
5. Do you see any remaining WPML-related issue that could explain why our rankings and Google Images visibility have not recovered since the migration?

Thank you.

May 27, 2026 at 12:47 pm #18063738

Andrey
Supporter

Thank you for your feedback.

Based on your description, your recent steps and corrections look technically correct and aligned with SEO practices for multilingual sites, as far as I know.

At this point, I do not see evidence that WPML itself is fundamentally broken in your current setup or that it has led to such issues. The bigger issue appears to be the cumulative instability in SEO introduced during and after the migration.

The temporary disappearance of canonical and hreflang tags after the server migration could have contributed to ranking volatility and indexing instability, especially on a large multilingual WooCommerce site. The incorrect hreflang output in XML sitemaps may also have sent conflicting signals, even if the HTML hreflang implementation itself was correct.

Your recent improvements are positive and should help Google better understand the site structure again over time.

I think the remaining areas of investigation you should focus on are Google indexing behavior, canonical selection, image indexing, crawl stability, redirects, and possible migration-related SEO side effects, rather than WPML itself.

June 1, 2026 at 7:45 am #18072308

lobkeB

Thank you very much, Andrey, for your look on our SEO issues!