• 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

ashkir

Active member
#1
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.

301config.php
Code:
<?php

/* ----------------------------------------------------------- *\
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.
 

CTXMedia

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

ashkir

Active member
#3
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?
 

CTXMedia

Formerly CyclingTribe
#4
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

Active member
#5
Yup. Still have it in the database. :)

Code:
#    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
#</IfModule>
 
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]
</IfModule>
archivedimportlog.jpg
 

CTXMedia

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

Cheers,
Shaun :D
 

Jake Bunce

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

Code:
//	$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

Active member
#9
On our old server this was the exact directory:

/home/dh44pq/public_html

We transferred to the new server and installed XenForo here:
/home/rpgdir/public_html

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

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