Dovendo spostare un dominio da .com a .net (sito in php)

E' corretto usare questa funzione nel file index.php?

---------------
<?php
header("Location: www.nomesito.net");
exit;
?>

marall