• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.2 Redirect URL's since vB4 and vBSEO

Luis

Well-known member
#1
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.

Thanks.
 

Jeremy

Well-known member
#2
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
#4
Add to the top of the .htaccess file in your /foro directory:

Code:
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.
 

Luis

Well-known member
#5
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.