Our asp application is moving to new server and i want to implement a permenant url redirection. I am aware of following two approaches , i need to understand which one to user over other and when ?
Option 1:
<%@ Language=VBScript %><% Response.Redirect “http://www.new-url.com” %>
Option 2:
<%@ Language=VBScript %><% Response.Status="301 Moved Permanently"
Response.AddHeader "Location","http://www.new-url.com/" %>
Thanks,
Nikhil.