custom error page for wrong extentionless url

Posted by Community Admin on 04-Aug-2018 12:12

custom error page for wrong extentionless url

All Replies

Posted by Community Admin on 18-Mar-2011 00:00

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

Posted by Community Admin on 18-Mar-2011 00:00

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>

I hope you find this information useful. if you need any further assistance resolving this issue, please contact me.

Regards,
Boyan Barnev
the Telerik team

Posted by Community Admin on 18-Mar-2011 00:00

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

Posted by Community Admin on 21-Mar-2011 00:00

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

This thread is closed