Generador de mapas del sitio gratuito

Generador de mapas del sitio Hreflang para mapas del sitio XML y Next.js

Create an XML sitemap with hreflang alternates for every language, or a Next.js sitemap.js, in seconds. Build it from your URL pattern or import the tags from live pages.

Tu sitio

12 URLs en 3 páginas

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
        xmlns:xhtml="http://www.w3.org/1999/xhtml">
  <url>
    <loc>https://example.com/</loc>
    <xhtml:link rel="alternate" hreflang="en" href="https://example.com/" />
    <xhtml:link rel="alternate" hreflang="fr" href="https://example.com/fr/" />
    <xhtml:link rel="alternate" hreflang="de" href="https://example.com/de/" />
    <xhtml:link rel="alternate" hreflang="es" href="https://example.com/es/" />
    <xhtml:link rel="alternate" hreflang="x-default" href="https://example.com/" />
  </url>
  <url>
    <loc>https://example.com/fr/</loc>
    <xhtml:link rel="alternate" hreflang="en" href="https://example.com/" />
    <xhtml:link rel="alternate" hreflang="fr" href="https://example.com/fr/" />
    <xhtml:link rel="alternate" hreflang="de" href="https://example.com/de/" />
    <xhtml:link rel="alternate" hreflang="es" href="https://example.com/es/" />
    <xhtml:link rel="alternate" hreflang="x-default" href="https://example.com/" />
  </url>
  <url>
    <loc>https://example.com/de/</loc>
    <xhtml:link rel="alternate" hreflang="en" href="https://example.com/" />
    <xhtml:link rel="alternate" hreflang="fr" href="https://example.com/fr/" />
    <xhtml:link rel="alternate" hreflang="de" href="https://example.com/de/" />
    <xhtml:link rel="alternate" hreflang="es" href="https://example.com/es/" />
    <xhtml:link rel="alternate" hreflang="x-default" href="https://example.com/" />
  </url>
  <url>
    <loc>https://example.com/es/</loc>
    <xhtml:link rel="alternate" hreflang="en" href="https://example.com/" />
    <xhtml:link rel="alternate" hreflang="fr" href="https://example.com/fr/" />
    <xhtml:link rel="alternate" hreflang="de" href="https://example.com/de/" />
    <xhtml:link rel="alternate" hreflang="es" href="https://example.com/es/" />
    <xhtml:link rel="alternate" hreflang="x-default" href="https://example.com/" />
  </url>
  <url>
    <loc>https://example.com/pricing</loc>
    <xhtml:link rel="alternate" hreflang="en" href="https://example.com/pricing" />
    <xhtml:link rel="alternate" hreflang="fr" href="https://example.com/fr/pricing" />
    <xhtml:link rel="alternate" hreflang="de" href="https://example.com/de/pricing" />
    <xhtml:link rel="alternate" hreflang="es" href="https://example.com/es/pricing" />
    <xhtml:link rel="alternate" hreflang="x-default" href="https://example.com/pricing" />
  </url>
  <url>
    <loc>https://example.com/fr/pricing</loc>
    <xhtml:link rel="alternate" hreflang="en" href="https://example.com/pricing" />
    <xhtml:link rel="alternate" hreflang="fr" href="https://example.com/fr/pricing" />
    <xhtml:link rel="alternate" hreflang="de" href="https://example.com/de/pricing" />
    <xhtml:link rel="alternate" hreflang="es" href="https://example.com/es/pricing" />
    <xhtml:link rel="alternate" hreflang="x-default" href="https://example.com/pricing" />
  </url>
  <url>
    <loc>https://example.com/de/pricing</loc>
    <xhtml:link rel="alternate" hreflang="en" href="https://example.com/pricing" />
    <xhtml:link rel="alternate" hreflang="fr" href="https://example.com/fr/pricing" />
    <xhtml:link rel="alternate" hreflang="de" href="https://example.com/de/pricing" />
    <xhtml:link rel="alternate" hreflang="es" href="https://example.com/es/pricing" />
    <xhtml:link rel="alternate" hreflang="x-default" href="https://example.com/pricing" />
  </url>
  <url>
    <loc>https://example.com/es/pricing</loc>
    <xhtml:link rel="alternate" hreflang="en" href="https://example.com/pricing" />
    <xhtml:link rel="alternate" hreflang="fr" href="https://example.com/fr/pricing" />
    <xhtml:link rel="alternate" hreflang="de" href="https://example.com/de/pricing" />
    <xhtml:link rel="alternate" hreflang="es" href="https://example.com/es/pricing" />
    <xhtml:link rel="alternate" hreflang="x-default" href="https://example.com/pricing" />
  </url>
  <url>
    <loc>https://example.com/blog/hello-world</loc>
    <xhtml:link rel="alternate" hreflang="en" href="https://example.com/blog/hello-world" />
    <xhtml:link rel="alternate" hreflang="fr" href="https://example.com/fr/blog/hello-world" />
    <xhtml:link rel="alternate" hreflang="de" href="https://example.com/de/blog/hello-world" />
    <xhtml:link rel="alternate" hreflang="es" href="https://example.com/es/blog/hello-world" />
    <xhtml:link rel="alternate" hreflang="x-default" href="https://example.com/blog/hello-world" />
  </url>
  <url>
    <loc>https://example.com/fr/blog/hello-world</loc>
    <xhtml:link rel="alternate" hreflang="en" href="https://example.com/blog/hello-world" />
    <xhtml:link rel="alternate" hreflang="fr" href="https://example.com/fr/blog/hello-world" />
    <xhtml:link rel="alternate" hreflang="de" href="https://example.com/de/blog/hello-world" />
    <xhtml:link rel="alternate" hreflang="es" href="https://example.com/es/blog/hello-world" />
    <xhtml:link rel="alternate" hreflang="x-default" href="https://example.com/blog/hello-world" />
  </url>
  <url>
    <loc>https://example.com/de/blog/hello-world</loc>
    <xhtml:link rel="alternate" hreflang="en" href="https://example.com/blog/hello-world" />
    <xhtml:link rel="alternate" hreflang="fr" href="https://example.com/fr/blog/hello-world" />
    <xhtml:link rel="alternate" hreflang="de" href="https://example.com/de/blog/hello-world" />
    <xhtml:link rel="alternate" hreflang="es" href="https://example.com/es/blog/hello-world" />
    <xhtml:link rel="alternate" hreflang="x-default" href="https://example.com/blog/hello-world" />
  </url>
  <url>
    <loc>https://example.com/es/blog/hello-world</loc>
    <xhtml:link rel="alternate" hreflang="en" href="https://example.com/blog/hello-world" />
    <xhtml:link rel="alternate" hreflang="fr" href="https://example.com/fr/blog/hello-world" />
    <xhtml:link rel="alternate" hreflang="de" href="https://example.com/de/blog/hello-world" />
    <xhtml:link rel="alternate" hreflang="es" href="https://example.com/es/blog/hello-world" />
    <xhtml:link rel="alternate" hreflang="x-default" href="https://example.com/blog/hello-world" />
  </url>
</urlset>

/ Altified

Mantén tu mapa del sitio multilingüe sincronizado automáticamente.

Altified publica un mapa del sitio traducido que se actualiza cada vez que agregas páginas o idiomas.

Comienza gratis

Cómo generar un mapa del sitio hreflang

Introduce la URL de tu sitio, los códigos hreflang que publicas y la estructura de las URL de tus idiomas. Añade las rutas de las páginas, una por línea, y la herramienta generará las URL de cada idioma con sus alternativas recíprocas.

  • Seleccione subdirectorios, subdominios o un parámetro de consulta de idioma.
  • Mantén el idioma predeterminado en la raíz o asígnale su propio prefijo.
  • Descarga sitemap.xml o copia la versión app/sitemap.js de Next.js.

Ejemplo de mapa del sitio con Hreflang

Cada elemento url contiene un loc más un xhtml:link para cada versión de idioma, incluyendo el propio elemento y un x-default opcional. El urlset debe declarar el espacio de nombres xhtml, que el generador añade automáticamente.

/ Preguntas frecuentes

Preguntas frecuentes

¿Qué es un mapa del sitio hreflang?

Se trata de un mapa del sitio XML donde cada URL muestra sus alternativas de idioma con elementos xhtml:link. Es una alternativa a colocar etiquetas hreflang en la sección <head> del HTML de cada página, y resulta útil para sitios web grandes o páginas que no se pueden editar fácilmente.

¿Son mejores los mapas del sitio con hreflang que las etiquetas hreflang?

Ninguna opción tiene mejor posicionamiento; los motores de búsqueda las tratan igual. Los mapas del sitio con hreflang son más fáciles de mantener en sitios grandes porque las alternativas se encuentran en un solo archivo en lugar de en cada encabezado de página, y mantienen el HTML de la página más pequeño.

¿Puedo dividir los mapas del sitio hreflang por idioma?

Sí. Puedes publicar un mapa del sitio por idioma en un índice de mapas del sitio, siempre y cuando cada entrada de URL siga incluyendo todas las alternativas de idioma, incluidas las URL que se encuentran en los mapas del sitio de los otros idiomas.

¿Necesito incluir hreflang tanto en el mapa del sitio como en el HTML?

No. Un solo método es suficiente. Si utiliza ambos, los dos conjuntos de datos deben coincidir exactamente; de lo contrario, los motores de búsqueda recibirán señales contradictorias.

¿Por qué cada URL de idioma tiene su propia entrada?

Cada versión lingüística debe listarse a sí misma y a todas las demás versiones. Por lo tanto, una página en cuatro idiomas genera cuatro entradas URL, cada una con el mismo conjunto completo de alternativas.

¿Cómo puedo agregar alternativas de hreflang a un mapa del sitio de Next.js?

En el enrutador de aplicaciones, devuelva alternates.languages desde app/sitemap.js, como se muestra en la pestaña Next.js. Next.js renderiza esas entradas como elementos xhtml:link en el archivo sitemap.xml generado.

¿Qué hace la opción Importar desde páginas activas?

Lee las etiquetas hreflang ya presentes en hasta 10 páginas públicas y las convierte en entradas del mapa del sitio, de modo que puedes trasladar una configuración hreflang existente a un mapa del sitio sin tener que volver a escribirla.

¿Dónde puedo enviar el mapa del sitio?

Súbelo a la raíz de tu sitio, haz referencia a él en robots.txt con una línea Sitemap: y envíalo a Google Search Console y Bing Webmaster Tools.