If you have imported your vBulletin 3.x database into XenForo, you can automatically redirect all traffic destined for your vBulletin content to its new location within XenForo.
All you need to do is unzip these files and place them in the directory within which the vBulletin files with the corresponding names would be located.
Any requests for the old URLs will be redirected with a 301 permanent redirection header.
The included 301config.php file has all of the configuration options and they are documented within.
If you archived your import log table, you must change IMPORT_LOG_TABLE to suit.
Usage if you installed XenForo in a different directory compared to where vBulletin was installed
To do this, simply edit the included 301config.php file, un-comment the $fileDir = '/some/path/here' line and then replace the value for $fileDir with the full path to your XenForo installation, for example:
Note that the 301config.php, showthread.php, forumdisplay.php and showpost.php files must still be placed in the directory in which vBulletin was installed for this to work.PHP:
$fileDir = '/home/example/public_html/xenforo-forum';
Redirection Scripts for vBulletin 3.x 7.2
Redirects for vBulletin 3's showthread.php, forumdisplay.php, etc URLs to XenForo for SEO