Posted By

depiction on 08/03/11


Tagged


Versions (?)

VB 301 Redirect


 / Published in: Visual Basic
 

  1. <script runat="server">
  2. Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
  3. Response.Status = "301 Moved Permanently"
  4. Response.AddHeader("Location", "http://www.new-page.com")
  5. End Sub
  6. </script>

Report this snippet  

You need to login to post a comment.