Need help redirecting old .asp pages to new .aspx pages.
4:22 pm on Nov 7, 2006 (gmt 0)
We recently change over to an Apache Web Server, I noticed in our 404 error log file that we are getting alot of reference to old pages with the .asp extension. Is there away to redirect the old .asp page to the new .aspx pages?
10:01 pm on Nov 8, 2006 (gmt 0)
<%@ Page Explicit="True" Language="VB" Debug="True" %> <script runat="server"> Sub Page_Load(Sender As Object, E As EventArgs) If Not IsPostBack Then Response.Redirect("TARGET URL HERE") End If End Sub </script>
3:12 pm on Nov 9, 2006 (gmt 0)
Thanks for the help, can you tell me where I would put this code?