META redirect is very common and works for all HTML page code. If you currecntly have a CGI page, you will need this CGI redirect instead.
#!/usr/bin/perl
print "Location: http://newdomain.com/newfile.pl\n\n";
Copy the above two lines into your text editor, replace the destination URL of your choice, and save it as the file name of the old CGI document (ie: "oldfile.pl"). Also, make sure the first line of the script, #!/usr/bin/perl, is the correct path to the Perl interpreter on your server. In some cases, it is #!/usr/local/bin/perl instead. Some servers may require #!/usr/bin/perl -w