This is really quite basic so there isn’t much to explain the header sends a raw HTTP header to the browser, the out come with this is a redirect.
< ?php header("Location: http://www.domain.com"); ?>
For more information on the header function see php.net.