$v) { if ($k == 'f') { continue; } $req[] = $k . '=' . $v; } header('Location: /forum/' . $_REQUEST['f'] . ($req ? '?' . implode('&', $req) : '')); return; } // Redirect to index header('Location: /forum/'); }); Router::any('/support.php', function () { if (isset($_GET['tracker'])) { header('Location: /support/tracker'); return; } header('Location: /support'); }); Router::any('/faq.php', function () { header('Location: /faq'); }); Router::any('/search.php', function () { header('Location: /search'); });