Welcome to WebmasterWorld Guest from 54.167.102.69

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)

New User

5+ Year Member

joined:Mar 14, 2006
posts:18
votes: 0


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

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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:May 13, 2003
posts:723
votes: 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)

New User

5+ Year Member

joined:Mar 14, 2006
posts:18
votes: 0


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

Also do you have an equivelent code writen in C?

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members