if(isset($_GET['artnr'])) { if($_GET['artnr'] == "OSI50005") { header("Status: 301 Moved"); header("Location: http://www.example.com"); } }