Redirect mot working

Goodmorning,

Redirect does not work after importing. It does work if I click F5.
does anyone know what is going wrong?
Below the script.

thanks

[php]

<?php $idbedrijf = ($_GET['idbedrijf']); $product = ($_GET['product']); $prijs = ($_GET['prijs']); $tafel = ($_GET['tafel']); $tijd = date("H:i:s"); $datum = date("d-m-Y"); $hostname = 'localhost'; $dbname = '******'; $db_user = '******'; $db_password = '******'; $link = mysql_connect($hostname,$db_user,$db_password); $connect = mysql_select_db($dbname,$link)or die(mysql_error()); $res=mysql_query("INSERT INTO `bestelling` (`idbedrijf`, `product`, `prijs`, `tafel`, `tijd`, `datum`) VALUES ('".$idbedrijf."', '".$product."', '".$prijs."', '".$tafel."', '".$tijd."', '".$datum."')") or die(mysql_error()); header("Location: /$idbedrijf/$tafel/"); ?>

[/php]

and my .htaccess

RewriteEngine On

RewriteEngine On
RewriteRule ^([^/]*)/([^/]*)/([^/]*)$ /index.php?id=$1&tafel=$2&gerecht=$3 [L]
RewriteRule ^([^/]*)/([^/]*)/([^/]*)/([^/]*)$ /bestel.php?idbedrijf=$1&tafel=$2&product=$3&prijs=$4 [L]


RewriteRule ^([a-zA-Z0-9-+/]+)$ index.php?id=$1
RewriteRule ^([a-zA-Z0-9-+/]+)/$ index.php?id=$1

RewriteRule ^([a-zA-Z0-9-+/]+)$ bestel.php?idbedrijf=$1&tafel=$2&product=$3&prijs=$4
RewriteRule ^([a-zA-Z0-9-+/]+)/$ bestel.php?idbedrijf=$1&tafel=$2&product=$3&prijs=$4

header("Location: "???);

Sponsor our Newsletter | Privacy Policy | Terms of Service