Use a CGI PERL Redirect Script

This article will walk you through the process of using a 301 redirect script to your website.  The 301 redirect  is a very efficient method of webpage redirection.  More importantly, it is search engine friendly. 

In order to utilize a 301 redirect, you will need to add the following code to a file on your site (replacing http://www.domain.com with your actual desination URL):

$q = new CGI;
print $q->redirect("http://www.domain.com/");

In most cases, you will need to insert this script on a default document such as index.php or default.php in order to redirect a fully-qualified domain name.

NOTE: This script will need to be placed in the cgi-bin folder located in the web root.