mmmhhhhhh.... does not work for me. It seems that in my constellation, I need a different directory name.
When I do it as described above, the redirect url in the browser is then:
mydomainname2.com/forum/index.php
but the correct url of my XF forum is:
mydomainname2.com/index.php
So this part "/forum/" seems to be wrong. But no matter what I change in the 301config.php file, this "/forum" does not go away.
-----------
current setup:
all on the same server
domainname 1 with vb installed in directory 1, which is "forum". So the vb forum is accessable under
mydomainname1.com/forum/index.php
in this /forum directory are all vb files. I copied all files of the XF redirect package into this, except the 301config.php. Additionally I put a .htaccess file into the same directory with the text:
Redirect 301 /forum/
http://www.mydomainname2.com/
in the XF directory (directory2), I created a subdirectory "forum". In this one I put the 301config.php file with the code:
Code:
<?php
/* ----------------------------------------------------------- *\
This variable defines where XenForo is installed.
If you have not installed XenForo into the same directory in which
vBulletin 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 = '/mypathtonewxfforum';
/* ----------------------------------------------------------- *\
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_special');
This '/mypathtonewxfforum' is the full path to the xf forum. So the directory for mydomainname2.com. This is not the mydomainname2.com/forum/ directory with the 301config.php in it
No matter what I change in this setting, the result are always the same. I get in the browser the mydomainname2.com/forum/index.php instead of mydomainname2.com/index.php. Even if I leave the /mypathtonewxfforum/forum/ directory empty.
Any ideas what I do wrong?
and the second question would be: Since I have imported 10 different vb forums with 10 different log files, how do I apply these 10 at the same time in the 301config.php?