Saltar al contenido Saltar a la barra lateral

Este es el foro de soporte técnico de WPML, el plugin multilingüe de WordPress.

Todas las personas pueden leerlo pero solo los clientes de WPML pueden ingresar comentarios. El equipo de WPML responde en los foros 6 días a la semana, 22 horas por día.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 -
- 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 -

Zona horaria del soporte: Asia/Dhaka (GMT+06:00)

Este tema contiene 1 respuesta, tiene 2 voces.

Última actualización por Prosenjit Barman hace 1 año, 5 meses.

Asistido por: Prosenjit Barman.

Autor Publicaciones
julio 4, 2024 a las 10:03 am #15890984

Vicente

Antecedentes del problema:
Estoy intentando asegurarme de que las URLs de productos en catalán se generen correctamente en nuestro sitio web. Sin embargo, estamos experimentando un problema donde una URL incorrecta se está generando y redirigiendo a la versión en español. URL incorrecta que se genera y no debería existir: enlace oculto Esta URL redirige a enlace oculto URL correcta en catalán: enlace oculto Link to a page where the issue can be seen: enlace oculto

Síntomas:
La URL incorrecta enlace oculto se genera y redirige a la versión en español, en lugar de a la versión correcta en catalán. Esto genera errores en Search Console como 'Página con redirección' o 'Error redirección'.

Preguntas:
¿Cómo puedo evitar que se genere la URL incorrecta?
¿Cómo puedo asegurarme de que la URL correcta en catalán se mantenga sin problemas?

julio 5, 2024 a las 4:41 am #15895707

Prosenjit Barman
Partidario de WPML desde 03/2023

Idiomas: Inglés (English )

Zona horaria: Asia/Dhaka (GMT+06:00)

Hi There,
Thanks for contacting WPML Support.

To reduce the waiting time, I took this ticket and responded in English. Please let me know if you're okay with it or if you want to continue the conversation in Spanish language. I will check and forward this ticket to one of our Spanish-speaking supporters to assist you in the Spanish language.

I understand the issue you're having. Here's what's happening: When you create a translation using WPML and try to access the translated page by manually adding the language code to the URL while keeping the default page slug, the plugin's redirection feature will redirect you to the correct translation. This ensures there are no errors and that visitors remain engaged with the website.

However, these incorrect URLs should be filtered out from the sitemap before it is submitted to Google Search Console. From the WPML debug info, I noticed that you're using the Yoast SEO plugin, which usually creates the sitemap, but, the WPML SEO addon, which should be filtering out these redirect URLs, is missing from your site. The WPML SEO plugin is also necessary to ensure the SEO configuration is correct across all the languages on your site. For more details about the WPML SEO plugin, please check the following guides:

- https://wpml.org/documentation/related-projects/wpml-seo/
- https://wpml.org/documentation/plugins-compatibility/using-wordpress-seo-with-wpml/

Please try the following steps, and I hope they will help resolve the issue you encountered in Search Console:

1. Activate the WPML SEO plugin. If you haven't installed it yet, go to Plugins > Add New > Commercial tab from your WordPress Dashboard.
2. Go to Yoast SEO > Settings.
3. Scroll down to the XML sitemaps card and toggle the switch to disable the feature.
4. Clear the caches from your site, browser, and, if enabled, Cloudflare.
5. Go to Settings > Permalinks and resave the permalink structure.
6. Re-enable the XML Sitemap feature.
7. Go to Yoast SEO > General and click the Start SEO Data Optimization button.

Let me know how it goes. I will be happy to help if you need further assistance in this matter.

Best regards,
Prosenjit

El tema '[Cerrado] Problemas con la generación incorrecta de URLs' está cerrado a nuevas respuestas.