homepage Welcome to WebmasterWorld Guest from 50.19.172.0
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
Forum Library, Charter, Moderators: ocean10000

Microsoft IIS Web Server and ASP.NET Forum

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

5+ Year Member



 
Msg#: 3148876 posted 4:22 pm on Nov 7, 2006 (gmt 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

 

nakulgoyal

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 3148876 posted 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>

jmarch51

5+ Year Member



 
Msg#: 3148876 posted 3:12 pm on Nov 9, 2006 (gmt 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?

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved