Welcome to WebmasterWorld Guest from

Forum Moderators: ocean10000

Message Too Old, No Replies

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



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

5+ Year Member


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)

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


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