Resource icon

Redirection Scripts for vBulletin 3.x 8.0

No permission to download
I am not using the vb > script for most of my link redirects because im writing my own RewriteRules to convert form vbSEo to Xen... but I did upload this script juuust in case someone possibly had a really old link using the old vb format.

When testing the following link, it did not redirect me to specific page, just the correct forum:

http://www.mysite.com/forumdisplay.php?f=22&order=desc&page=3

Redirected to :

http://www.mysite.com/forums/forumname.22/

Is that just how the script woks or did I miss a step?


EDIT: I think I may just be able to answer my own question here and say that its just the way the script was meant to work. Based on the number of threads that are set to show for each forum, the page number would not always match when converting to Xen.
 
I am not using the vb > script for most of my link redirects because im writing my own RewriteRules to convert form vbSEo to Xen... but I did upload this script juuust in case someone possibly had a really old link using the old vb format.

When testing the following link, it did not redirect me to specific page, just the correct forum:

http://www.mysite.com/forumdisplay.php?f=22&order=desc&page=3

Redirected to :

http://www.mysite.com/forums/forumname.22/

Is that just how the script woks or did I miss a step?

Here is a code example to add page numbers to these redirect scripts:

http://xenforo.com/community/thread...rect-from-vb4-2-with-vbseo.45667/#post-490490
 
Last weekend I succesfully moved over my second (VBSEO'd) forum to XF. The import script worked perfectly and the redirection of posts too. But now there are still a few old links that should not be accessible anymore, but still are:

http://www.skodaforum.nl/board/forum.php
http://www.skodaforum.nl/board/search.php
http://www.skodaforum.nl/board/online.php
...

New forum: http://www.skodaforum.nl/forum

How can I redirect these /board links to my new site?

Thanks!

You could add this rule to the .htaccess file in your /board directory:

Code:
RewriteRule ^(forum|search|online)\.php$ /forum/? [R=301,L]

That will redirect to the new XF index.
 
Ok great. And that won't conflict with the redirections already in place?

RewriteEngine on
RewriteRule f[\d]+/.+-([\d]+)-([\d]+).html showthread.php?t=$1&page=$2 [NC,L]
RewriteRule f[\d]+/.+-([\d]+).html showthread.php?t=$1 [NC,L]
RewriteRule f([\d]+)/i([\d]+).html forumdisplay.php?f=$1&page=$2 [NC,L]
RewriteRule f([\d]+)/ forumdisplay.php?f=$1 [NC,L]
 
Is it possible to redirect to a new URL at the same time you are changing the software?

That is normally achieved by editing the 301config.php file (part of this redirect package) to specify the full server path to the XenForo directory (when it is different than vB). The redirect scripts are then uploaded to the old vB location with the path entered for the new XF location. The scripts then take care of both the change of directory and the XF redirect.

...unless XF is on a different server than vB in which case it is necessary to setup separate redirects to the new server, then these redirect scripts take over.
 
Hi Mike, I found redirection scripts for IPB and vB, is there one for phpBB3 too? Thanks!
 
@Mike, you need to take another quick look at the latest version (7)...

The showthread redirect stopped working with the latest version.
In showthread.php, it looks like you couldn't decide between variable name $data and $extraParams. ;)

At showthread.php, line 31, you need to replace
Code:
$data = array('thread_id' => $newId);
$extraParams = array();

with just
Code:
$extraParams = array('thread_id' => $newId);

With this change, you get redirected to the right thread, but it still isn't redirecting to a page number. I haven't figured that part out yet.
 
No forumdisplay.php is the correct format - good point with showthread.php though.

Showthread should be:
Code:
$target = XenForo_Link::buildPublicLink('canonical:threads', $data, $extraParams);
not:
Code:
$target = XenForo_Link::buildPublicLink('canonical:threads', $extraParams);
 
Top Bottom