custom error page for wrong extentionless url
Hi,
i have created a custom page in sitefinity 4.0 but URL does not redirect to custom 404 page when i hit extensionless URL.
only when i hit wrong url having extension aspx, then it goes to custom error page. but sitefinity extensionless url that are wrong does not goes to custom error page.
I have setting for custom page in web.config that only accepting asxp extenion only.
Please what i have to do in sitefinity 4.0.
Please give me answer in reference to sitefinity.
thanks
saqi
Hello saqib,
Thank you for contacting Telerik Support.
Please refer to the sample code which sets 404 handling for Sitefinity pages and redirects to my custom 404 error page.
<
customErrors
mode
=
"On"
>
<
error
statusCode
=
"404"
redirect
=
"~/404"
/>
</
customErrors
>
hi,
i have custom error setting as i mention in my detail but it accept only when i give wrong url having aspx extension.
but when i hit wrong url like:
http://localhost/service/map
it does not go to custom error page.
thanks
saqi
Hello saqib,
Thank you for getting back to me. Please visit this forum thread which contains a solution and sample video showing how to implement it in IIS.
Best wishes,
Boyan Barnev
the Telerik team