Finally a working ASP.NET 301 Redirect
Posted: 11 February 2011 08:57 AM   [ Ignore ]
Newbie
Rank
Total Posts:  3
Joined  2011-02-11

For anyone who needs it for ASP.NET websites.

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Response.Status = “301 Moved Permanently”
Response.AddHeader("Location", “http://www.yourwebsite.com/newlocation.aspx")
End Sub

Cheap Web Design

Profile
 
 
   
 
 
‹‹ Drupal      CSS image to link to website. ››