Finally a working ASP.NET 301 Redirect
Posted: 11 March 2008 06:40 PM   [ Ignore ]
Newbie
Rank
Total Posts:  26
Joined  2008-03-05

For anyone who needs it for ASP.NET websites.

<script runat="server">
  Private 
Sub Page_Load(ByVal sender As System.ObjectByVal e As System.EventArgsHandles MyBase.Load
    Response
.Status "301 Moved Permanently"
    
Response.AddHeader("Location""http://www.yourwebsite.com/newlocation.aspx")
  
End Sub
</script> 
Profile