• Welcome to XF2 Addons. You can buy my Premium membership for $35 per year, and this gives you access to download any or ALL of the 300 add-ons that I have developed for Xenforo 2.x. In addition, Premium members will get technical support. Once the Premium membership has expired you can continue to use the installed addons on your forum as long as you like.

Redirects using showthread.php and showpost.php


Andy

Administrator
Staff member
If you have imported from vBulletin and you never used VBSEO then to redirect vBulletin links to XenForo links all you have to do is create these two files and place them in the forum folder.

showthread.php
PHP:
<?php

$t = $_GET['t'];
$p = $_GET['p'];

if ($t != '' AND $p == '') 
{
    header ('Location: https://www.domain/forums/threads/' . $t . '/',TRUE,301);  
}

if ($p != '') 
{
	header ('Location: https://www.domain.com/forums/posts/' . $p . '/',TRUE,301);
}
showpost.php
PHP:
<?php

$p = $_GET['p'];

header ('Location: https://www.domain.com/forums/posts/' . $p . '/',TRUE,301);
 

Similar threads

Top