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

XF 1.2 vB 4 Import Redirect Help

oVR

Active member
#1
I upgraded to XenForo recently and imported all the info from the old vB 4 forums.

It was a clean install and all the id's are the same but I don't have an archive to use for the redirect script.

What can I do to get the old links to redirect?

Can I do an import on a primer/test site and then use that archive to fuel the original site?
 

Jake Bunce

XenForo moderator
Staff member
#2
Please provide an example old and new thread URL. Then I can provide you with exact instructions for your redirects.
 

Jake Bunce

XenForo moderator
Staff member
#4
Add to top of .htaccess file in the /forum directory:

Code:
RewriteEngine On

RewriteRule ^[^/]+/([0-9]+)-[^\.]+\.html$ /threads/$1/ [R=301,L]
 

oVR

Active member
#5
Add to top of .htaccess file in the /forum directory:

Code:
RewriteEngine On

RewriteRule ^[^/]+/([0-9]+)-[^\.]+\.html$ /threads/$1/ [R=301,L]
I have the old vB 4 forums in a directory called forums(old). Do I add it to that or to the directory of the xenforo installation?
 

Jake Bunce

XenForo moderator
Staff member
#6
Does the /forum directory still exist? If not then you can add this slightly different rules to the web root's .htaccess:

Code:
RewriteEngine On

RewriteRule ^forum/[^/]+/([0-9]+)-[^\.]+\.html$ /threads/$1/ [R=301,L]
 

oVR

Active member
#7
Thanks a lot man. You saved me a lot of trouble. I hope this thread helps other people searching for solutions to import redirection from vB4.