Forum Moderators: open
<?php
header('HTTP/1.0 301 Moved Permanently');
header("Location: redirect URL");
?>
Not only does it [the Location header] send this header back to the browser, but it also returns a REDIRECT (302) status code to the browser unless some 3xx status code has already been set.
[php.net ]
Andreas