$bob=$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']; if (preg_match("/allanach.dk\\/simon\\/index/i",$bob)) { header('Location: http://simon.allanach.dk'); } else { } ?>