i have the following redirect script.
i have a redirect script that uses a querystring param to know where do redirect to. would like to strip out the param and its value and rebuid the query-string before it redirects. so the referrer does not contain the param value.
this is my currently code.
$check = $_GET['param'];
function redirect($location) {
header("Location: $location");
exit;}
if($_GET['param'] === '1'){
redirect('http://domain.com/');
}