• 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 340 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 imported from vBulletin and have used standard URLs like this

showthread.php?t=12345

then all you have to do is create these two files and place them in the forums 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