Remapping old imported forum permalinks to posts and topics?

You are looking for permalink normalizations. I’m using them in the phpBB3 importer too.