<?phpheader($_SERVER["SERVER_PROTOCOL"].' 301 Moved');header('Location: http://www.mydomain.com/'.strtolower($_GET['id']).'.php');?>