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