$x = $_SERVER["QUERY_STRING"]; if ($x != "") { $y = "Location: http://".$_SERVER['SERVER_NAME']."/livestreams-en.php?str=".$x; } else $y = "Location: http://".$_SERVER['SERVER_NAME']."/livestreams-en.php"; header($y); ?>