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 „Gefällt mir“

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

3 „Gefällt mir“

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 „Gefällt mir“

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 „Gefällt mir“

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

Es wäre großartig, die Startseite in die Sitemap aufzunehmen.

Kleine Vorschläge:

  1. Sie könnte in einer separaten Datei page_sitemap.xml enthalten sein (mit Seiten wie Startseite, Datenschutz, AGB und Über uns).

Derzeit sind diese Seiten bereits in der Google Search Console unter dem Status „Indiziert, aber nicht in der Sitemap eingereicht

4 „Gefällt mir“

@osioke Wenn ich versuche, eine Sitemap hinzuzufügen, wird „Konnte nicht abrufen“ angezeigt. Ich versuche, eine Sandbox für meinen Kunden mit allen verfügbaren Plugins und Funktionen einzurichten, und dies ist eine der wichtigsten Anforderungen.

Edit: Die Website ist https://testghost.tk

Dies liegt daran, dass dieses Plugin entwickelt wurde, um Suchmaschinen dabei zu helfen, Ihre Website schneller zu indexieren. Für Ihre Anfrage wird leider ein benutzerdefiniertes Plugin benötigt.

1 „Gefällt mir“

Ein Beitrag wurde in ein neues Thema aufgeteilt: Wie verwende ich die Sitemap richtig?