"I recommend that you always 301 redirect any url if you remove that page to make sure that you never lose any link power. If you moved the page then you should redirect the old url to the new location. If you removed the page completely then it is usually best to redirect the URL to index or to the main page in the relevant section. Doing this can dramatically improve your rankings."
http://www.collylogic.com/301-redirects/
Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^domain.com [nc]
rewriterule ^(.*)$ http://www.domain.com/$1 [r=301,nc]
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L]
<?
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: http://www.host.dom" );
?>
<%
response.setStatus(301); response.setHeader( "Location", "http://www.host.dom/" ); response.setHeader( "Connection", "close" ); %>
<%@ Language=VBScript %>
<%
Response.Status="301 Moved Permanently"
Response.AddHeader "Location","http://www.host.dom/"
%>
<script runat="server">
private void Page_Load(object sender, System.EventArgs e)
{
Response.Status = "301 Moved Permanently";
Response.AddHeader("Location","http://www.host.dom");
}
</script>
<.cfheader statuscode="301" statustext="Moved permanently">
<.cfheader name="Location" value="http://www.host.dom">
headers["Status"] = "301 Moved Permanently"
redirect_to "http://www.host.dom/"
end
$q = new CGI;
print $q->redirect("http://www.host.dom/");