<?php$param = reset(array_keys($_GET));$thread = substr($param, 0, strpos($param, '-'));header('Location: index.php?topic=' . $thread);exit;