Discourse Sitemap

:discourse2: Summary Discourse Sitemap adds a sitemap.xml to your Discourse instance
:open_book: Install Guide This plugin is bundled with Discourse core. There is no need to install the plugin separately.

Features

There has been some discussion over the need of a sitemap, and I think Discourse doesn’t really need one, although I do believe that a forum might be indexed a bit faster with one.

Anyway, we created this plugin because of a customer that needed a sitemap for Google News, and this trick didn’t work because they were using Amazon S3 to store their uploads (which broke the same domain requirement)

Configuration

Just enable it using the site setting in the Plugins menu, and you will get

  • /sitemap.xml
  • /news.xml
  • A Sitemap line in robots.txt

Do you need a sitemap?

No. You do not necessarily “need” a sitemap.xml file.

TL;DR You can get faster indexing with a sitemap, but it doesn’t necessarily make for better SEO.

If you have a very large site, this may benefit you by allowing for faster page indexing.

CHANGELOG

  • Add new bullets when major features are committed here

TODO

61 Me gusta

Sorry about that. With the fix added on your repo, I’ll just remove this one.

3 Me gusta

I am also doing the changes on Sitemap plugin. I will create a new PR soon. Currently I am working on the 4 points which are recommended by @sam in previous post.

5 Me gusta

I guess the problem is that it is never able to even render first time around.

grabbing 50K topics can take a while, I would try a pluck there instead of a select cause it would be much faster

Short of that a site setting to limit the size cause maybe smaller batches are needed … not sure.

2 Me gusta

the sitemap plugin of discourse do not update the sitemap urls to https:// (as usually seen in wordpress). It still shows http://. Please solve this issue. As it helps in faster https:// indexing after migrating to SSL

I only post 1 photos 1 topic

Hi, what could be the reason I get error 502 bad gateway on my sitemap?
https://forum.dobreprogramy.pl/sitemap.xml

Sería excelente agregar la página de inicio al sitemap.

Pequeñas sugerencias:

  1. Podría incluirse por separado en un archivo page_sitemap.xml (incluyendo páginas como Inicio, Privacidad, TOS y Acerca de).

Actualmente, estas páginas ya aparecen en Google Search Console con el estado: «Indexadas, no enviadas en el sitemap».

image

  1. Para las páginas de categorías y etiquetas, es necesario incluir la siguiente opción de verificación en la configuración del plugin. Estas páginas ya aparecen en Google Search Console como «Indexadas, no enviadas en el sitemap».

a) Categoría: agregar al sitemap «Sí» o «No».

b) Etiquetas: agregar al sitemap «Sí» o «No».

Nota: esta opción ayudará a quienes deseen desactivar el rastreo de las páginas de categorías y etiquetas. Al seleccionar la opción «No», estas páginas incluirán {content=“noindex”}.

  1. El «sitemap de imágenes» también es muy útil para que Google descubra, rastree e indexe las imágenes.

En la pestaña Rendimiento, los informes de la consola muestran cómo se desempeñan las imágenes en la búsqueda de Google.

4 Me gusta

@osioke cuando intento agregar el mapa del sitio, muestra que no se pudo obtener. Estoy tratando de crear un entorno de pruebas para mi cliente con todos los plugins y funciones disponibles, y este es uno de los requisitos más importantes.

Edición: el sitio web es https://testghost.tk

Esto se debe a que este plugin está diseñado para ayudar a los motores de búsqueda a indexar tu sitio más rápido. Me temo que tu solicitud requerirá un plugin personalizado.

1 me gusta

Se dividió una publicación en un nuevo tema: ¿Cómo usar el sitemap correctamente?