
How to redirect search engines to a moved
page or site?
Search Engine Friendly Redirects
If you are thinking or are about to
move a web page you will most likely
want to redirect visitors to the old
web-page to the new in such a methd
so that the search engines do not get
confused.
Some of the ways they can get confused
are:
Bringing up two copies of the same
page. This is likely to trip a duplicate
content penalty.
Using a temporary redirect. This means
'the page has moved but will be back
shortly - do not update your index'.
A 301 permanent redirect is the redirection
method recommended by the major search
engines. Using a 301 redirect you are
in effect telling the search engines
the page has moved and to update their
index. It also has the nice side benefit
of redirecting the benefit of inbound
links to the new page.
Implementing a 301 permanent redirect
is very different depending on the operating
system or programming language you are
using on your web server.
IIS Redirect
In internet services manager, do the
following: right click on /my-old-file.htm
Now, select the radio titled "a
redirection to a URL".
And, enter the redirection web-page.
Check "The exact url address entered
above" and the "A permanent
redirection for this resource"
Now, click on 'Apply'
Apache Redirect
Create a file called .htaccess in your
root directory and add the following
line:
Redirect 301 /my-old-file.htm http://www.mywebsite.com/new-file.htm
ColdFusion Redirect
Edit the file /my-old-file.htm and put
the following code:
<cfheader statuscode="301"
statustext="Moved permanently">
<cfheader name="Location"
value="http://www.mywebsite.com/new-file.htm">
PHP Redirect
Edit the file /my-old-file.htm and put
the following code:
<?php
Header( "HTTP/1.1 301 Moved Permanently"
);
Header( "Location: http://www.mywebsite.com/new-file.htm"
);
?>
ASP Redirect
Edit the file /my-old-file.htm and put
the following code:
<%@ Language=VBScript %>
<%
Response.Status="301 Moved Permanently"
Response.AddHeader "Location",
" http://www.mywebsite.com/new-file.htm"
%>
ASP .NET Redirect
Edit the file /old-file.htm and put
the following code:
<script runat="server">
private void Page_Load(object sender,
System.EventArgs e) {
Response.Status = "301 Moved Permanently";
Response.AddHeader("Location","http://www.mywebsite.com/new-file.htm");
}
</script>
HTML Redirect
Edit the file /old-file.htm and put
the following code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD
HTML 4.0 Transitional//EN">
<html>
<head>
<title>Your Page Title</title>
<meta http-equiv="REFRESH"
content="0;url=http://www.mywebsite.com/new-file.htm">
</HEAD>
<BODY>Optional page text here.
</BODY>
</HTML>