There are a number of ways to redirect pages for one reason or the other. I will list the most common ones.
Meta refresh: add this line to the header of your html document to redirect your page to another location:
<META HTTP-EQUIV=REFRESH CONTENT="0; URL=http://www.newlocation.com">
Another simple way of redirecting would be with a javascript in the header of your page:
<SCRIPT LANGUAGE="JavaScript">
<!--
window.location="http://www.yourdomain.com/";
// -->
</script>
Both ways will work, however if your looking for a better solution and one that is accepted by the search engines you should go for a 301 permanent redirect, here are some good ways of redirecting.
301 redirect using .htaccess:
RewriteCond %{HTTP_HOST} ^www.mysite.com
RewriteRule (.*) http://mysite.com/$1 [R=301,L]
If you'd like to redirect single files or directories add this to your .htaccess:
Redirect permanent /olddir/ http://www.mysite.com/newdir/
301 redirect using a PHP script:
<?php
if ($_SERVER['HTTP_HOST'] == "www.mysite.com") {
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://mysite.com".$_SERVER['REQUEST_URI']);
exit; }
?>
301 redirect using a ASP script:
<%
Response.Status = "301 Moved Permanently"
Response.AddHeader "Location", "http://www.mysite-new.com"
_
& Request.ServerVariables("SCRIPT_NAME") _
& "?" & Request.ServerVariables("QUERY_STRING")
Response.End
%>
301 redirect using a Perl script:
print "Status: 301 Moved Permanently\r\n" .
"Location: http://www.mysite-new.com" .
"$ENV{'SCRIPT_NAME'}?$ENV{'QUERY_STRING'}\r\n" .
"\r\n";