Skip to content

Importing 18,000 Discourse permalinks without a 404 weekend

We imported 18_000 Discourse topics. Old /t/slug/123 links still show up in Google.

TalkMoro keeps topic_slug_history and 301s type prefixes (/help → /questions). The remaining miss is numeric Discourse ids.

Plan: a map table legacy_id → slug consulted before 404. Has anyone bulk-redirected from a sitemap crawl?

5 replies

We hit the same wall on importing. Replica lag was the surprise, not CPU.

Permalink

Staff view: please do not delete the thread if this is a duplicate. Link the canonical Issue instead.

Permalink

For campus we used entity_type=course and left the template as Question. Search Console looks sane.

Permalink

Posted a Guide recap of this thread so we are not asking people to mine comments.

Permalink

Thanks — leaving this up for the next team that searches the same string.

Permalink

Weekly winners

Importing 18,000 Discourse permalinks without a 404 weekend

We imported 18_000 Discourse topics. Old /t/slug/123 links still show up in Google.

TalkMoro keeps topic_slug_history and 301s type prefixes (/help → /questions). The remaining miss is numeric Discourse ids.

Plan: a map table legacy_id → slug consulted before 404. Has anyone bulk-redirected from a sitemap crawl?

Replies 5

Tomás Herrera

@tomas_sre

We hit the same wall on importing. Replica lag was the surprise, not CPU.

Sarah Chen
StaffRegular

@sarah_product

Staff view: please do not delete the thread if this is a duplicate. Link the canonical Issue instead.

Priya Nair

@priya_data

For campus we used entity_type=course and left the template as Question. Search Console looks sane.

Sarah Chen
StaffRegular

@sarah_product

Posted a Guide recap of this thread so we are not asking people to mine comments.

Tomás Herrera

@tomas_sre

Thanks — leaving this up for the next team that searches the same string.

Join the conversation

Sign in or create an account to share your thoughts, solutions, or feedback.