XF 1.1 Redirect from IPB 3.3


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.


Formerly CyclingTribe
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.


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?


Formerly CyclingTribe
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)


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]


Formerly CyclingTribe
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?
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

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


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.