PHP HTTP Headers and Redirects

301 Moved Permanently

<?php
header("Location: http://domain.tld/new/location/", true, 301);
exit;
?>