Create permalinks for redirect url all in a mass

AI 生成的摘要

bekircem is seeking help to redirect old MyBB forum URLs to new Discourse topics after migration. The old URLs, such as http://forum.site.com/konu-the-title-of-the-post.html, follow a structure where the slug matches Discourse topic URLs. pfaffman clarifies the URL format and asks if the slug matches exactly, which bekircem confirms. The focus is on redirecting topics, not categories or other pages. bekircem thanks the community despite the solution being out of budget.

Hi,

I’ve imported my forum Mybb to Discourse. My Discourse is now working on production server. My old url’s can’t redirect to new Discourse urls. I check import script. There is some codes for redirects url, it seems doesn’t work for me. :slight_smile: How can i fix that? How can i redirect old urls to new in a mass?

Why this is doesnt work for me? My Mybb forum url structure is like that: /thread-title.html or /thread-title-id.html

So your old urls look like

http://example.com/thread-1234.html

or do they look like

http://example.com/thread-the-title-of-the-post-1234.html

or do they look like

http://example.com/thread-title-1234.html

It is like that:

http://sub.site.com/thread-the-title-of-the-post.html
In the Turkish language thread means “konu”. So it is exactly:

http://forum.site.com/konu-the-title-of-the-post.html

Does “the-title-of-the-post” match exactly the slug in Discourse?

Yes it is match exactly.

“the-title-of-the-post” in the url exactly match for topic url’s. Anyway, i just want to redirect for topics. Category or other page is doesnt matter.

It is out of budget, but even so, thank you for all answers and support.