Welcome to WebmasterWorld Guest from 54.163.40.152

Forum Moderators: ocean10000

Message Too Old, No Replies

Need help redirecting old .asp pages to new .aspx pages.

     

jmarch51

4:22 pm on Nov 7, 2006 (gmt 0)

5+ Year Member



Hello

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?

Thanks

Jeff

nakulgoyal

10:01 pm on Nov 8, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



<%@ 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>

jmarch51

3:12 pm on Nov 9, 2006 (gmt 0)

5+ Year Member



Thanks for the help, can you tell me where I would put this code?

Also do you have an equivelent code writen in C?

 

Featured Threads

Hot Threads This Week

Hot Threads This Month