XF 2.2 Redirecting from vBulletin3.7 to Xenforo using htaccess

MesterPerfect

Active member
good morning
I'm trying to direct links from vBulletin3.7 to Xenforo using htaccess
Old links look like this
localhost/vb/t75853.html

I want it to be like this

localhost/xf/threads/75853

I wrote this code in htaccess file

Code:
    RewriteRule ^t(.*)-new-post.html$ threads/$1 [L,R=301]
    RewriteRule ^t(.*)-([0-9]+).html$ threads/$1/#post-$2 [L,R=301]
    RewriteRule ^t(.*).html$ threads/$1 [L,R=301]
    RewriteRule ^f([0-9]+).*$ forums/$1 [L,R=301]
    RewriteRule ^u(.*).*$ members/$1 [L,R=301]
    RewriteRule ^sitemap/t-(.*).html$ threads/$1 [L,R=301]
    RewriteRule ^sitemap/f-(.*).html$ forums/$1 [L,R=301]
    RewriteRule ^sitemap/f-([0-9]+).*$ forums/$1 [L,R=301]
    RewriteRule ^showthread.php?t=([0-9]+).*$ threads/$1 [L,R=301]

But when you visit the old links, the conversion process is like this

localhost/C:\Xampp\htdocs/xf/threads/75853

Any tips are appreciated
 
Top