vbSEO to XF links


Hi.

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

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

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

XF URL of the same thread after migration:

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

Can someone help me with the mod_rewrite redirect?