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

XF 1.1 Redirect from IPB 3.3

Discussion in 'Installation, Upgrade, and Import Support' started by ashkir, Jul 19, 2012.

  1. ashkir

    ashkir Active Member

    Hi there. I cannot figure out how to get the redirects to work. :( It's frustrating. I keep trying the edits, but, the new htaccess file makes the XenForo board completely blank.

    Old URL: http://rpg-directory.com/topic/66584-before-time/page__st__15
    Old URL: http://www.rpg-directory.com/index.php?/topic/66584-before-time/page__view__findpost__p__11152728
    New URL: http://rpg-directory.com/threads/before-time.25001/

    We did save the archived_import_log. We're on a new host. So the directory paths did change a bit.

    /* ----------------------------------------------------------- *\
    This variable defines where XenForo is installed.
    If you have not installed XenForo into the same directory in which
    IP.board was installed, you will need to provide the full path to
    the XenForo directory here. Remove the leading // and then enter
    the path as in the following examples:
    #	$fileDir = '/home/example/public_html/new_forums';
    #	$fileDir = 'C:/inetpub/wwwroot/xenforo';
    \* ----------------------------------------------------------- */
    	$fileDir = '/home/rpgdir/public_html/forums';
    /* ----------------------------------------------------------- *\
    This constant defines the table from which the import redirection
    scripts will fetch their data. Normally they will use the table
    'xf_import_log', but if you have archived your import data, you
    should provide the name of the archive table here. Remove the
    leading // and then replace 'import_log_x' with the name of your
    archive table, as in the following examples:
    #	define('IMPORT_LOG_TABLE', 'my_import_log');
    #	define('IMPORT_LOG_TABLE', 'import_log_my_forums');
    \* ----------------------------------------------------------- */
    	define('IMPORT_LOG_TABLE', 'archived_import_log');
    The pages just leads to a blank page. :( No redirects at all. I have no idea how to rewrite a .htaccess as they're completely greek to me.
  2. CyclingTribe

    CyclingTribe Well-Known Member

    Is your XF install in the same directory as your previous IP.Board install? If so, put a # back at the front of the $fileDir line.
  3. ashkir

    ashkir Active Member

    We're on different servers. so the directory changed from /home/dh44pq/public_html to /home/rpgdir/public_html so should I put the # back in front?
  4. CyclingTribe

    CyclingTribe Well-Known Member

    Just confirm that you have the table archived_import_log within your XF database too, and if possible post a copy of your .htaccess file so we can give it the once-over. (y)
    ashkir likes this.
  5. ashkir

    ashkir Active Member

    Yup. Still have it in the database. :)

    #    Mod_security can interfere with uploading of content such as attachments. If you
    #    cannot attach files, remove the "#" from the lines below.
    #<IfModule mod_security.c>
    #    SecFilterEngine Off
    #    SecFilterScanPOST Off
    ErrorDocument 401 default
    ErrorDocument 403 default
    ErrorDocument 404 default
    ErrorDocument 500 default
    <IfModule mod_rewrite.c>
        RewriteEngine On
        #    If you are having problems with the rewrite rules, remove the "#" from the
        #    line that begins "RewriteBase" below. You will also have to change the path
        #    of the rewrite to reflect the path to your XenForo installation.
        #RewriteBase /ip.board
        # IPS Rewrite Rules
        RewriteCond %{REQUEST_URI} /(topic|forum|user)/ [OR]
        RewriteCond %{QUERY_STRING} (^|&)show(topic|forum|user)= [OR]
        RewriteCond %{QUERY_STRING} ^/(topic|forum|user)/ [OR]
        RewriteCond %{PATH_INFO} ^/(topic|forum|user)/
        RewriteRule ^.*$ ips2xf.php [NC,L]
        RewriteCond %{REQUEST_FILENAME} -f [OR]
        RewriteCond %{REQUEST_FILENAME} -l [OR]
        RewriteCond %{REQUEST_FILENAME} -d   
        RewriteRule ^.*$ - [NC,L]
        RewriteRule ^(data|js|styles|install) - [NC,L]
        RewriteRule ^.*$ index.php [NC,L]
  6. CyclingTribe

    CyclingTribe Well-Known Member

    Your server change shouldn't matter - it's about where you had your IP.Board files installed originally; was it in /<home dir>/ or /<home dir>/forums/ or /<home dir>/community?

    And when you switched over to XF did you move the IP.Board files to a different directory or did you simply install XF into the same location?

    Shaun :D
    ashkir likes this.
  7. CyclingTribe

    CyclingTribe Well-Known Member

    .htaccess looks fine. (y)
    ashkir likes this.
  8. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    It looks like XF occupies the same directory that IPB once did, so you should be able to comment out this line:

    //	$fileDir = '/home/rpgdir/public_html/forums';
    And the ips2xf.php file and .htaccess file should be in your xf directory (which appears to be public_html).
    ashkir and CyclingTribe like this.
  9. ashkir

    ashkir Active Member

    On our old server this was the exact directory:


    We transferred to the new server and installed XenForo here:

    Uploaded the database and just the basic IPB forum (didn't set it up) with the conf_global with the database information here:

    So should I still tab it out? The domain name resolves is exactly the same domain name.
  10. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    ashkir likes this.
  11. ashkir

    ashkir Active Member

    Okay thanks! Will try that now. :)
  12. ashkir

    ashkir Active Member

    CyclingTribe likes this.

Share This Page