vbSEO to XF links


I'm looking to migrate from vB 3.8 to XF 1.5, x

The thing is, I do not know how to keep my current URL structure of VB in XF.

The thread URL in vB looks like this

Code (marked):

% forum_title% -% forum_id% /% thread_title% -% thread_id% /

XF URL of the same thread after migration:

Code (marked):

Can someone help me with the mod_rewrite redirect?