$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('/faq.php', function () { header('Location: /faq'); }); Router::any('/search.php', function () { header('Location: /search'); });