Remapping old imported forum permalinks to posts and topics?

Remapping permalinks to anything other than the topic will be quite difficult. I would not even attempt it.

Here’s the crux of it: “list of topic IDs” is usually a reasonably small list, but “list of post IDs” is enormous. You may have 10k topics but you’ll probably have 50k, 100k, even 500k posts.

Remember in discourse Topic IDs are unique, that is to say:

http://discourse.example.com/t/topic-alpha/1234

This is “topic 1234”

But Post IDs in public URLs are not unique, meaning:

http://discourse.example.com/t/topic-alpha/1234/3
http://discourse.example.com/t/topic-beta/4567/3

These are both “post number 3” in each topic…