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 curtidas

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

3 curtidas

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 curtidas

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 curtidas

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

Seria ótimo adicionar a página inicial ao sitemap.

Pequenas sugestões:

  1. Ela pode ser incluída em um arquivo separado chamado page_sitemap.xml (incluindo páginas como Homepage, Privacidade, TOS e Sobre).

Atualmente, essas páginas já estão no Google Search Console com o status (Indexadas, não enviadas no sitemap).

image

  1. Para páginas de categoria e tag, a opção de marcação abaixo precisa ser incluída nas configurações do plugin. Essas páginas já estão incluídas no Google Search Console como (Indexadas, não enviadas no sitemap).

a) Categoria: adicionar no sitemap “Sim” ou “Não”

b) Tags: adicionar no sitemap “Sim” ou “Não”

Nota: essa opção ajudará quem deseja desativar o rastreamento de páginas de categorias e tags. Ao selecionar a opção “Não”, essas páginas incluirão {content=“noindex”}.

  1. O “Sitemap de imagens” também é muito útil para que o Google descubra, rastreie e indexe imagens.

Na aba de desempenho, os relatĂłrios do Console mostram como as imagens se comportam na pesquisa do Google.

4 curtidas

@osioke quando tento adicionar o sitemap, ele mostra que nĂŁo foi possĂ­vel buscar. Estou tentando criar um ambiente de testes para meu cliente com todos os plugins e recursos disponĂ­veis, e esse Ă© um dos requisitos mais importantes.

Edição: o site é https://testghost.tk

Isso ocorre porque este plugin foi projetado para ajudar os mecanismos de busca a indexar seu site mais rapidamente. Lamento, mas sua solicitação exigirá um plugin personalizado.

1 curtida

Uma postagem foi dividida em um novo tĂłpico: Como usar o sitemap corretamente?