Fixed

Go in Admin Cp > Plugins & Products > Plugin Manager > search for "301 Post" and replace all with:
PHP Code:
//get forumid
$forumid_query = $db->query_first("
SELECT forumid
FROM " . TABLE_PREFIX . "thread AS thread
WHERE threadid = $threadid AND visible = 1
");
$redirect_url = $vbulletin->options['bburl'] . "/f" . $threadinfo[forumid] . "/" . tfseo_url($threadinfo[title]) . "-" . $threadinfo[threadid] . "/post" . $postinfo[postid] . ".html";
$forumid = implode($forumid_query);
$tfseo_base = $vbulletin->options['tfseo_base'] . $vbulletin->tfseo['tseo_uri'];
if (isset($threadinfo[threadid]) AND $_REQUEST['goto'] !== 'nextoldest' AND $_REQUEST['goto'] !== 'nextnewest' AND $vbulletin->options['tfseo_attivo'] AND $vbulletin->options['tfseo_riscrivi'] AND $vbulletin->options['tfseo_301'] AND $tfseo_base != $redirect_url)
{
header("HTTP/1.1 301 Moved Permanently");
header("Location: $redirect_url");
}