XF 1.2 Redirect URL's since vB4 and vBSEO


Well-known member
I've converted a vB4 forum with vBSEO 3.6 after being hacked 3 times in a month.

Now I do not understand how to rewrite the URL's, even after reading a few threads about this and do some tests with no success.

XenForo software is on the same route as the old vB4 (www.mydomain.com/foro).

I have the configuration file of the vBSEO URL's if needed. The new server use Nginx

Please, someone is kind enough to help me.

Soorry for my english, I am using Google translator to write.



Well-known member
Please provide one of the original URLs and the destination URLs and we can provide you with the proper redirect code.

Jake Bunce

XenForo moderator
Staff member
Add to the top of the .htaccess file in your /foro directory:

RewriteEngine On

RewriteRule ^[^/]+/.+-([0-9]+)/$ /foro/threads/$1/ [R=301,L]
RewriteRule ^members/.+-([0-9]+)/$ /foro/members/$1/ [R=301,L]
RewriteRule ^[^/]+-([0-9]+)/$ /foro/forums/$1/ [R=301,L]
That should do it.


Well-known member
Thank you very much Jake

Sorry for not reply earlier but I could not test this until today.

This is working for me.

Regards, Luis.