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

XF 1.3 Redirect old vB 4.2.2 links to XF 1.3.0 links

Mike

XenForo developer
Staff member
#2
Is 935 the ID on the old forum? It seems strange for a thread to jump from ID 935 to 230924 (if anything, they'd normally go down).

If not, then I don't see any way of detecting the mapping automatically.
 

Jake Bunce

XenForo moderator
Staff member
#3
Given the drastic increase in id number I assume this was an import into an already-populated XF forum?

Redirects are possible if there is an id map. The built-in vB importer generates a map. We just need to know the name of the table in the database. Then instructions would be as follows...

Add these rules to the top of the .htaccess file in your web root (which should be XF's .htaccess file):

Code:
RewriteEngine On

RewriteRule ^[^/]+/([0-9]+)-[^\.]+\.html$ /showthread.php?t=$1 [R=301,L]
Then upload these redirect scripts to your web root:

http://xenforo.com/community/resources/redirection-scripts-for-vbulletin-3-x.264/

You will need to edit the 301config.php file to specify the name of the import_log table in the database which contains the id map.
 

Robru

Well-known member
#4
Thank you for your answers Mike and Jake,

I actually think that I've done multiple imports.
Will run your explanation in your post, Jake :)