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개의 μ’‹μ•„μš”

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

3개의 μ’‹μ•„μš”

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개의 μ’‹μ•„μš”

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개의 μ’‹μ•„μš”

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?

μ‚¬μ΄νŠΈλ§΅μ— ν™ˆνŽ˜μ΄μ§€λ₯Ό μΆ”κ°€ν•˜λŠ” 데 큰 도움이 될 것 κ°™μŠ΅λ‹ˆλ‹€.

μž‘μ€ μ œμ•ˆ:

  1. νŽ˜μ΄μ§€λ₯Ό λ³„λ„μ˜ page_sitemap.xml νŒŒμΌμ— 포함할 수 μžˆμŠ΅λ‹ˆλ‹€ (ν™ˆνŽ˜μ΄μ§€, κ°œμΈμ •λ³΄μ²˜λ¦¬λ°©μΉ¨, μ΄μš©μ•½κ΄€, μ†Œκ°œ νŽ˜μ΄μ§€ λ“± 포함).

ν˜„μž¬ μ΄λŸ¬ν•œ νŽ˜μ΄μ§€λ“€μ€ Google Search Consoleμ—μ„œ 이미 이 μœ ν˜•(인덱싱됨, μ‚¬μ΄νŠΈλ§΅μ— μ œμΆœλ˜μ§€ μ•ŠμŒ)으둜 ν‘œμ‹œλ˜κ³  μžˆμŠ΅λ‹ˆλ‹€.

image

  1. μΉ΄ν…Œκ³ λ¦¬ 및 νƒœκ·Έ νŽ˜μ΄μ§€μ˜ 경우, μ•„λž˜μ— ν‘œμ‹œλœ 체크 μ˜΅μ…˜μ„ ν”ŒλŸ¬κ·ΈμΈ 섀정에 포함해야 ν•©λ‹ˆλ‹€. μ΄λŸ¬ν•œ νŽ˜μ΄μ§€λ“€μ€ 이미 Google Search Console에 (인덱싱됨, μ‚¬μ΄νŠΈλ§΅μ— μ œμΆœλ˜μ§€ μ•ŠμŒ) μƒνƒœλ‘œ ν¬ν•¨λ˜μ–΄ μžˆμŠ΅λ‹ˆλ‹€.

a) μΉ΄ν…Œκ³ λ¦¬: μ‚¬μ΄νŠΈλ§΅μ— μΆ”κ°€ β€œμ˜ˆβ€ λ˜λŠ” β€œμ•„λ‹ˆμ˜€β€

b) νƒœκ·Έ: μ‚¬μ΄νŠΈλ§΅μ— μΆ”κ°€ β€œμ˜ˆβ€ λ˜λŠ” β€œμ•„λ‹ˆμ˜€β€

μ°Έκ³ : 이 μ˜΅μ…˜μ€ μΉ΄ν…Œκ³ λ¦¬ 및 νƒœκ·Έ νŽ˜μ΄μ§€μ˜ 크둀링을 λ„κ³ μž ν•˜λŠ” μ‚¬μš©μžμ—κ²Œ 도움이 λ©λ‹ˆλ‹€. β€œμ•„λ‹ˆμ˜€β€ μ˜΅μ…˜μ„ μ„ νƒν•˜λ©΄ ν•΄λ‹Ή νŽ˜μ΄μ§€μ—λŠ” {content="noindex}κ°€ ν¬ν•¨λ©λ‹ˆλ‹€.

  1. "이미지 μ‚¬μ΄νŠΈλ§΅"은 λ˜ν•œ Google이 이미지λ₯Ό λ°œκ²¬ν•˜κ³ , ν¬λ‘€λ§ν•˜λ©°, μΈλ±μ‹±ν•˜λŠ” 데 맀우 도움이 λ©λ‹ˆλ‹€.

μ„±λŠ₯ νƒ­μ˜ μ½˜μ†” λ³΄κ³ μ„œμ—μ„œλŠ” 이미지가 Google κ²€μƒ‰μ—μ„œ μ–΄λ–»κ²Œ μˆ˜ν–‰λ˜λŠ”μ§€ 확인할 수 μžˆμŠ΅λ‹ˆλ‹€.

4개의 μ’‹μ•„μš”

@osioke μ‚¬μ΄νŠΈλ§΅μ„ μΆ”κ°€ν•˜λ €κ³  ν•˜λ©΄ β€˜fetch μ‹€νŒ¨β€™ 였λ₯˜κ°€ ν‘œμ‹œλ©λ‹ˆλ‹€. μ €λŠ” ν΄λΌμ΄μ–ΈνŠΈλ₯Ό μœ„ν•΄ μ‚¬μš© κ°€λŠ₯ν•œ λͺ¨λ“  ν”ŒλŸ¬κ·ΈμΈκ³Ό κΈ°λŠ₯을 κ°–μΆ˜ μƒŒλ“œλ°•μŠ€λ₯Ό ꡬ좕 쀑인데, 이 μš”κ΅¬μ‚¬ν•­μ΄ κ°€μž₯ μ€‘μš”ν•œ λΆ€λΆ„ 쀑 ν•˜λ‚˜μž…λ‹ˆλ‹€.

μˆ˜μ •: μ›Ήμ‚¬μ΄νŠΈλŠ” https://testghost.tk μž…λ‹ˆλ‹€.

이 ν”ŒλŸ¬κ·ΈμΈμ€ 검색 엔진이 μ‚¬μ΄νŠΈλ₯Ό 더 λΉ λ₯΄κ²Œ μΈλ±μ‹±ν•˜λ„λ‘ 돕기 μœ„ν•΄ μ„€κ³„λ˜μ—ˆκΈ° λ•Œλ¬Έμž…λ‹ˆλ‹€. μ£„μ†‘ν•˜μ§€λ§Œ μš”μ²­ν•˜μ‹  κΈ°λŠ₯μ—λŠ” λ§žμΆ€ν˜• ν”ŒλŸ¬κ·ΈμΈμ΄ ν•„μš”ν•©λ‹ˆλ‹€.

1개의 μ’‹μ•„μš”

κ²Œμ‹œλ¬Όμ΄ μƒˆ 주제둜 λΆ„λ¦¬λ˜μ—ˆμŠ΅λ‹ˆλ‹€: μ‚¬μ΄νŠΈλ§΅μ„ μ˜¬λ°”λ₯΄κ²Œ μ‚¬μš©ν•˜λŠ” 방법?