vbSEO to XF links

Hi.

Im looking to migrate from vB 3,8 to XF 1,5,x

Thing is I don't know how to preserve my current URL structure from VB in XF.

Thread URL in vB looks like this

https://www.domain.hr/subforum-name-177/thread-name-6/
Code (markup):

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

XF URL of same thread after migration:

https://www.domain.hr/threads/thread-name.6/
Code (markup):

Can anyone help me with mod_rewrite redirection.