what is the difference between response.redirect and response status 301 redirects in asp ?
Posted
by Nikhil Vaghela
on Stack Overflow
See other posts from Stack Overflow
or by Nikhil Vaghela
Published on 2010-06-11T19:00:02Z
Indexed on
2010/06/11
19:02 UTC
Read the original article
Hit count: 391
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.
© Stack Overflow or respective owner