XF 1.2 vB 4 Import Redirect Help

oVR

Active member
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?
 
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?
 
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]
 
  • Like
Reactions: oVR
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.
 
Top Bottom