Posted By

jonhenshaw on 04/16/07


Tagged

redirect ASP 301


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

remix4


ASP 301 Redirect


 / Published in: ASP
 

This redirects visitors to a new URL using a 301 redirect. Using a 301 redirect is the safest way to let search engines like Google, Yahoo!, Live and Ask know your address has changed.

  1. <%@ Language=VBScript %>
  2. <%
  3. Response.Status="301 Moved Permanently";
  4. Response.AddHeader("Location","http://www.domain.com/");
  5. %>

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: seo on November 9, 2009

Thanks l did not want to lose my current ranking on the search engines, as Search Engine Optimisation is hard enough as it is, without having to start over.

Posted By: seo on November 9, 2009

Thanks l did not want to lose my current ranking on the search engines, as Search Engine Optimisation is hard enough as it is, without having to start over.

You need to login to post a comment.