1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / custom error page for wrong extentionless url

custom error page for wrong extentionless url

4 posts, 0 answered
  1. saqib
    saqib avatar
    22 posts
    Registered:
    23 Nov 2007
    18 Mar 2011
    Link to this post
    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
  2. Boyan Barnev
    Boyan Barnev avatar
    1429 posts
    Registered:
    28 Aug 2017
    18 Mar 2011
    Link to this post
    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
  3. saqib
    saqib avatar
    22 posts
    Registered:
    23 Nov 2007
    18 Mar 2011
    Link to this post
    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
  4. Boyan Barnev
    Boyan Barnev avatar
    1429 posts
    Registered:
    28 Aug 2017
    21 Mar 2011
    Link to this post
    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
4 posts, 0 answered