if (isset ($page) && intval($page) == 1) {
header('HTTP/1.1 301 Moved Permanently');
header('Location: viewthread.php?tid=' . $tid);
exit ();
}
if (isset ($page) && intval($page) == 1) {
header('HTTP/1.1 301 Moved Permanently');
header('Location: viewthread.php?tid=' . $tid);
exit ();
}