Migrating content from old forums


In this thread, it appears very often. The corresponding thread in the old forums is this one.




They are used frequently, but I only picked this one thread, because there’s so many in it.


Have you looked on the Wayback Machine?

Works great :slight_smile:

1 Like

Unfortunately, the corrupted characters were already present in this example thread by the time the Wayback Machine first indexed it in 2016.


@Firefishy, I just crawled the Wiki. There are 1089 links to the forum, of which 717 are unique AND start with http(s?)://forum.openstreetmap.org (there are some weird Google Translate links, I’ll have to look at).

Of those 717 links, 36 do not redirect, when the part after .org/ is put to the tester link.

Things you need not worry:

Things I’d like you to take a look at:

HTH :slight_smile:



I will add a workaround for the index.php issue.

Atom and RSS feeds, briefly looking into it, it looks quite complex to fix. I’ll likely add an ugly hack to point all old forum feeds to a static feed with a message asking the person to update their feed links. I don’t want burn a huge amount more time.

The &p= issue, I’ll create a regex which strips the page portion of the URL on redirect.


The forum... and forum.../index.php should redirect to the main page of Discourse, which I gathered would happen anyway when you shut down the forum completely.

For the RSS, I’m not too fussed, that’s like three pages and I bet nobody clicked on that link in a year or two :wink:

The old forum’s page size was 25, so you could always redirect to t/nnn/<topic-slack>/<(&p=x-1)*25+1>/ to get to the first post for that “page” (should you happen to suffer from boredom :rofl:)

Added a horrible fix for this, the issue is the ruby-bbcode-to-md library had a regex which didn’t cover this case. Will be fixed on the next site rebuild.


An easier solution would be to redirect them to the topic itself. We can easily fix those 19 links and make them even better, linking to the right item in the topic. Forum-intern links will working too. Only really lengthy discussion won’t be comfortable, same with links from extern. I could live with that, because the search function of Discourse is really impressive.


Test Import site reset again. Import running again.


  • […] (and likely other similar)
  • Post order bug

My proposed solution was to be taken with a grain or two of salt, I should’ve made that clearer.

Once the migration is complete, I’ll just change the links in the Wiki to point to the correct item.


1 Like

I have reset the test import site again, restarting the import again shortly.
The import will take 24 hours and permalinks will not work until importer is done.


Importer still running. Found another formatting issue with [code] block newlines. Add failing code newline/br test · Firefishy/ruby-bbcode-to-md@132b46c · GitHub


I’m very impressed by the work which has been done. But when is enough enough? How many old posts are affected by the remaining issues? Isn’t easier manually fix those one by one, then trying to find the solution which will fix all (?) problems?


I think I am now done. I fixed the [code] bug which was inserting floating <br>.

The import is looking more than good enough to me now.


The changeset comments and discussions could contain hyperlinks to forum topics and messages.
Is it planed to convert them?

The old URLs will continue to work and redirect to the imported topics.

See Migrating content from old forums - #214 by Firefishy


The question was not about a redirect.
The redirect server will be stoped at some time in the future because it is just additional utility and work or do not work independently.

There is no redirect server. Permalinks are supported by Discourse software.


I have started the final test import run, it will complete in approximately 24 hours.

The real LIVE import into community.openstreetmap.org will happen next week. (Week of 6th March 2023). The forum and community may be unavailable for upto 2 days during the import.