1. 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

Discussion in 'Installation, Upgrade, and Import Support' started by Robru, Mar 19, 2014.

  1. Robru

    Robru Well-Known Member

  2. Mike

    Mike XenForo Developer Staff Member

    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.
  3. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    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):

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


    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.
  4. Robru

    Robru Well-Known Member

    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 :)
  5. Robru

    Robru Well-Known Member

    Thank you gentlemen, this solution works perfectly!!

Share This Page