Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / September 2007

Tip: Looking for answers? Try searching our database.

Redirections Question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Just Me - 22 Sep 2007 08:40 GMT
Hi,

Ive just been converting a site which was written in frontpage to asp.net.
Because it was a public site and had been googled etc, now we have done the
conversion, there are a lot of page not found's reported. But we dont want
hundreds of old htm pages knocking around.

Is there a single file you can add somewhere with a list of redirections. so
that when pp request a page it ca be redirected to the appropriate new
resource.

Thanks
Just somebody else - 22 Sep 2007 09:00 GMT
You can add something like this in your config file:

<customErrors mode="On" defaultRedirect="~/errors/GeneralError.aspx">
    <error statusCode="404" redirect="~/errors/PageNotFound.aspx" />
</customErrors>

In PageNotFound.aspx you can write logic to redirect someone to the new
page.

> Hi,
>
[quoted text clipped - 8 lines]
>
> Thanks
Just Me - 22 Sep 2007 09:03 GMT
Thank you very much

> You can add something like this in your config file:
>
[quoted text clipped - 17 lines]
>>
>> Thanks

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.