0)) { $forumurl = vbseo_forum_url($_GET[f], $_GET[page]); header("HTTP/1.1 301 Moved Permanently"); if (preg_match("/bytes/", $forumurl)) { header("Location: $forumurl"); } else { header("Location: http://bytes.com/$forumurl"); } exit; } // is this a post redirect? if(ctype_digit($_GET[p]) && ($_GET[p]>0)){ $postinfo = fetch_postinfo($_GET[p]); $_GET["t"]=$postinfo[threadid]; $extraurl = "#post$_GET[p]"; } // fetch thread information if(ctype_digit($_GET[t]) && ($_GET[t]>0)){ $threadrow = fetch_threadinfo($_GET[t]); // fetch vbseo url for thread $threadurl = vbseo_thread_url_row($threadrow, $_GET[page]); header("HTTP/1.1 301 Moved Permanently"); header("Location: http://bytes.com/$threadurl$extraurl"); exit; }else{ header("HTTP/1.1 301 Moved Permanently"); header("Location: $vbseo_newurl$extraurl"); exit; } } else { header("HTTP/1.1 301 Moved Permanently"); header("Location: $vbseo_newurl$extraurl"); exit; } ?>