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 4 replies, has 2 voices.

Last updated by Waqas Bin Hasan 1 year, 10 months ago.

Assisted by: Waqas Bin Hasan.

Author Posts
July 25, 2023 at 5:42 pm #14098541

jonC-12

Tell us what you are trying to do?
Trying to get Google to index my new translated pages (Spanish)

Is there any documentation that you are following?
Normal Search Console URL inspector (which seems to pass) and then later shows a rediret error

Is there a similar example that we can see?
No

What is the link to your site?
hidden link

July 26, 2023 at 9:02 am #14101171

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting the support.

Can you please provide more details on the error? I mean at which point it gives error about the redirection, and if is there any specific URL mentioned.

IMPORTANT: Take full backup of your website and database beforehand.

Can you also try with a minimal setup like using WPML plugins only? And see if you still get the same problem.

On the other hand, I ‘ll advise you to fix “WP Memory Limit” to at least 128MB while 256MB is recommended. See https://wpml.org/home/minimum-requirements/ for detailed information. You can set this in your wp-config.php file by adding following code:

define( 'WP_MEMORY_LIMIT', '128M' );
define( 'WP_MAX_MEMORY_LIMIT', '256M' );

Remember to add these lines before the line where it says:
/* That's all, stop editing! Happy publishing. */

It helps improving the performance.

Please let me know and I'll try my best to further assist you on the matter.

Regards.

July 26, 2023 at 2:00 pm #14104563

jonC-12

Please see attached image. This is only happening with my new WPML pages I have recently added, the site has over 75 posts that are indexed and crawled for a long time. I have increased the memory and resubmitted Index request to see if it will help, but as you know it could take a few days for Google to attempt to re-index.

7-26-2023 6-55-14 AM.png
July 27, 2023 at 9:39 am #14109335

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for the details and trying that.

I am consulting with my team about more details and 'll update you as soon as I hear back.

Meanwhile, if you get any result on the recent submission, please feel free to update.

July 27, 2023 at 1:17 pm #14111023

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for waiting on this.

We've checked for details and noted followings:

- The URL hidden link works fine in the browsers and is accessible without any issue.

- When tried that URL, it ends like hidden link (notice the trailing slash).

- In the language switcher it is shown as hidden link (with trailing slash).

- In the sitemap, it also has a trailing slash: hidden link

- Hreflang has also the trailing slash:

<link rel="alternate" hreflang="es" href="<em><u>hidden link</u></em>"/>

So we are not sure where from Google getting this URL and what is causing it to give a redirect error. Perhaps you can check and confirm the followings:

A) Permalink structure, and just resave it.
B) Check your content if hidden link is included anywhere without trailing slash.