There’s many tools out there that will help you format the htaccess file redirects.
The basic format would be something like this
Redirect 301 /oldblog/?post_id=21 /newblog/?post_id=21
I would probably get one of many tested and working first then replicate the line.
This post has a link to the video using the RW8 htaccess tool: