The above only works for php to html

Oldfile.php and newfile.htm should of course be replaced with actual filenames

Now as for redirecting a whole domain, are new filenames the same as old? Are you on an Apache server?