A bit about 301 redirections - 301 redirect is the best and search engine friendly method to preform redirections. A 301 Redirection should preserve your search engine rankings for a given page. That happens because the "301 code" is interpreted as "moved permanently" and search engines should in most cases copy your old pagerank to the new page. It's not an exact science but it should work in most cases.
here are some examples for 301 redirections:
PHP:
- Code: Select all
<?
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: http://www.webhosting.com" );
?>
ASP:
- Code: Select all
<%@ Language=VBScript %>
<%
Response.Status="301 Moved Permanently"
Response.AddHeader "Location","http://www.webhosting.com"
%>
ASP.NET:
- Code: Select all
<script runat="server">
private void Page_Load(object sender, System.EventArgs e)
{
Response.Status="301 Moved Permanently";
Response.AddHeader("Location","http://www.webhosting.com");
}
</script>
JSP:
- Code: Select all
<%
response.setStatus(301);
response.setHeader( "Location", "http://www.webhosting.com");
response.setHeader( "Connection", "close");
%>
JSP:
- Code: Select all
<%
response.setStatus(301);
response.setHeader( "Location", "http://www.webhosting.com");
response.setHeader( "Connection", "close");
%>
that's about it. if anyone has questions, please use this forum to ask me.
tal.


