Hello,
I upgraded my site from asp to asp.net. This means that all of my previous asp files became obsolete. I don't want to lose my Google Ranking of the old pages.
What is the proper way to redirect? I tried to catch all of the old asp pages is my 404 and then to:
if Request.QueryString("aspxerrorpath").contains("index.asp") = true then
Response.Status = "301 Moved Permanently"
Response.AddHeader("Location", "http://www.domain.com/index.aspx")
Response.Redirect("/index.aspx")
end if
but it doesn't catch asp pages, only aspx.