Bulk importing Redirects to New Discourse Topics

Thank you, Jay, for your response. Instead of using the import script for migration, I opted for API integration due to the custom structure. I developed a Python script to import posts using the API, and I have successfully fetched new topic IDs for each topic. Despite importing old URLs with new topic IDs/URLs across approximately 6k pages, none of the mappings are functioning as expected. Could you please advise on what I might be missing and how to rectify this issue? Your guidance would be greatly appreciated.