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.

This topic contains 7 replies, has 2 voices.

Last updated by Carlos Rojas 1 year, 2 months ago.

Assisted by: Carlos Rojas.

Author Posts
September 7, 2023 at 1:16 pm #14359795

coinQ

Hello,

We have a multilingual website with more than 10,000 posts in six languages. We are facing an issue in the Google Search Console (GSC). Normally, when we translate a post or page, it shouldn't get redirected, right? but we are getting redirect issues for most of the pages.

Link to a page where the issue can be seen:

hidden link

hidden link

hidden link

hidden link

hidden link

hidden link

hidden link

These are some of the pages where we are getting the redirect issue.

I expected to see:
How should it work as per the WPML? Normally, if you convert a post or page, the translated version should only have the language slug before the title slug, right? without translating the title slug?

Instead, I got:
Here we can see the slug of every translated post is in English, and when we take that link, it will redirect us to its own language URL. I don't know why the title slug is also automatically translated. Here, the title slug also changes when updating or publishing the translated posts. Hence, the initial URL is translated to the new URL.

Is this an issue? If it is, how can we solve this? The page redirect issue in the GSC is increasing day by day. Is there any solution to fix this issue?

Please check and let us know your feedback.

Thank you

Page-indexing (3).png
September 7, 2023 at 1:59 pm #14360453

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

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

Hi there,

As I mentioned in the chat, we will continue working on this ticket. I will be waiting for your message.

Regards,
Carlos

September 8, 2023 at 7:02 am #14363813

coinQ

Hello,

When we checked the sitemap, the URLs with English slugs are presented in the sitemap, but how are they getting these English slugs? WPML translates the slugs, right? The initial URL from the WPML may be in the English language, and at that time the sitemap plugin fetches that URL, but after publishing the post or translating the post, the WPML automatically translates its slug, and the 301 redirection happens.

What are your thoughts regarding this? Did you face such issues before? How can we solve this?

We are using two plugins for the sitemap implementation.
1. XML Sitemap Generator for Google: https://wordpress.org/plugins/google-sitemap-generator/
2. XML Sitemap and Google News: https://wordpress.org/plugins/xml-sitemap-feed/

The first one is used for the main sitemap, and the second one is used for creating the news sitemap only.

Do these plugins have any issues with the WPML? How are they initially fetching the English-language version of the URL?

Please check and let us know your feedback.

Thank you

image_2023-09-08_10-24-34.png
XML-Sitemap.png
September 8, 2023 at 7:12 am #14363899

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

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

Hi there,
Thank you for your message

This is the first time I have seen this issue. I can't see why the wrong URLs are in the sitemap. I suspect that the plugins used to generate the sitemaps are not compatible with WPML, you can double-check it in this list: https://wpml.org/plugin/

I would recommend you use Yoast SEO or RankMath plugins and compare the results.

Regards,
Carlos

September 8, 2023 at 7:22 am #14363927

coinQ

Yes, the plugin is compatible and it is mentioned here!! You can check the below link

https://wpml.org/plugin/google-xml-sitemaps/

https://wpml.org/plugin/xml-sitemap-google-news-feeds/

September 8, 2023 at 7:34 am #14364045

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

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

Hi there,

As you can read here: https://wpml.org/plugin/google-xml-sitemaps/ -> "Please note that the Google XML Sitemaps plugin works with WPML only if the language URL format is set to A different domain per language"

Your site uses different languages per directories configuration.

September 8, 2023 at 8:35 am #14364593

coinQ

So, what will we do now to fix this issue? How they are fetching the URL which is in English language before publishing it? Is this shared by WPML? Somehow we need to solve this issue ASAP because the redirect issue is getting higher day by day and it will affect our SEO.

September 8, 2023 at 8:58 am #14364777

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

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

Please follow my recommendations from this message: https://wpml.org/forums/topic/page-with-redirect-issue/#post-14363899