MihirR is facing SEO and indexing issues in their Discourse forum after rebuilding it from scratch following a crash that lost ~10,000 topics. Because Discourse reuses topic IDs incrementally, old URLs (e.g., /t/old-topic-title/783) now point to new content, causing title mismatches, crawl errors in Google Search Console (GSC), and potential duplicate content penalties. The sitemap also reflects reused IDs, confusing crawlers. supermathie suggests manually setting the PostgreSQL topic ID sequence to a high value (e.g., 20,000) to prevent reuse of old IDs: SELECT setval('topics_id_seq', 20000, false);. Although this should ideally have been done at setup, MihirR confirms the forum already has ~6,000 topics and asks if jumping to 20,000 is safe. supermathie confirms this will skip IDs 6,000–19,999, preventing reuse of previously assigned IDs. MihirR seeks reassurance that this won’t break future functionality or cause issues if old IDs are eventually overwritten — supermathie clarifies the goal is to avoid reuse entirely, and MihirR is concerned about long-term implications if IDs are reused over time. The core recommendation remains: set the sequence to a high value to prevent ID collisions and mitigate SEO damage.
שלום לכולם,
אני מפעיל פורום Discourse וזקוק לעזרה בנושא גדול של SEO + אינדוקס לאחר בנייה מחדש.
מה קרה:
פורום ה-Discourse המקורי שלי קרס, ואיבדתי כ-10,000 נושאים.
בניתי מחדש את הפורום מאפס, תוך שמירה על אותו דומיין ועל אותו נכס ב-Google Search Console (GSC).
מכיוון ש-Discourse משתמש ב-מזהי נושאים מצטברים (incremental topic IDs), הנושאים החדשים שנוצרו כעת משתמשים מחדש במזהי נושאים ישנים (לדוגמה, /t/783 בעבר היה שייך לנושא שנמחק, וכעת הוא מוקצה לנושא חדש).
בעיות נוכחיות:
GSC מציג מעל 12,000 כתובות אתרים “נסרקו - לא נוצרו להן אינדקס”.
כתובות אתרים של נושאים ישנים כמו /t/old-topic-title/783 עדיין נוצרו להן אינדקס או שהן נסרקות.
כתובות אתרים אלה מצביעות כעת על תוכן חדש (לדוגמה, /t/new-topic-title/783), מה שגורם אי התאמות בכותרות בחיפוש ועלול לגרום קנסות על תוכן כפול/דל.
חלק מכתובות האתרים של הנושאים הישנים עדיין מוגשות (לא 404 או 410) ומתמזגות עם נושאים נוכחיים בעלי אותו מזהה.
מפת האתר כוללת מזהים שנעשה בהם שימוש חוזר, מה שמבלבל עוד יותר את הסורקים.