We Recommend

ASP.NET 3.5 Unleashed ASP.NET 3.5 Unleashed
ASP.NET 3.5 Unleashed is the most comprehensive book available on the Microsoft ASP.NET 3.5 Framework, covering all aspects of the ASP.NET 3.5 Framework--no matter how advanced.


Posted By

jonhenshaw on 04/16/07


Tagged

redirect ASP 301


Versions (?)


Who likes this?

1 person has 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 

You need to login to post a comment.