How do I create a CGI-based redirect page?
Simply copy the above two lines into your text editor, replace the part in red with 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.
As an example of a CGI redirect page in action, go to old forum URL It automatically takes the visitor to our new forum location (CodingForums.com), and uses exactly the code above to accomplish this.
Congratulations, you are now officially a page redirect Jedi!