PHP Query redirection

Query redirection

<?
if ($_SERVER['QUERY_STRING'] != "") header("Location: ".$_SERVER['QUERY_STRING']);
?>