Whenever you register a new domain and want to transfer an old PageRank from an old Website to that new address, be sure to use the 301 Code. Here are 3 methods on how to do that properly (pick one):
If you’re using IIS:
* In internet services manager, right click on the file or folder you wish to redirect
* Select the radio titled “a redirection to a URL”.
* Enter the redirection page
* Check “The exact url entered above” and the “A permanent redirection for this resource”
* Click on ‘Apply’
In ASP.NET:
<script runat=”server”>
private void Page_Load(object sender, System.EventArgs e)
{
Response.Status = “301 Moved Permanently”;
Response.AddHeader(“Location”,”http://www.newdomain.com/”);
}
</script>
In ASP:
<%@ Language=VBScript %>
<%
Response.Status=”301 Moved Permanently”
Response.AddHeader “Location”, “http://www.newdomain.com/”
%>
In PHP:
<?
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: http://www.newdomain.com" );
?>
0 comments ↓
There are no comments yet...Kick things off by filling out the form below.
Leave a Comment