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

Forums / Developing with Sitefinity / Custom error-handling for foreign pages

Custom error-handling for foreign pages

1 posts, 0 answered
  1. code777
    code777 avatar
    0 posts
    Registered:
    24 Feb 2013
    13 Sep
    Link to this post

    Hello,

    I am wondering if anyone can please enlighten me on creating custom error handling implementation in Sitefinity for foreign pages. For instance when I navigate to an invalid URL that doesn't exist in English (which is the default language of my site). Such as http://www.mysite.com/xxxxxx it goes to error page 404 as normal. However when I navigate to the German version of the same page and browse an invalid URL like http://www.mysite.de/xxxxxx. It redirects to a blank page although in the console log I can see the status code 404 printed.

    My Pages: Errors(Group page) with children {Error 404(en-gb, en-us, de, it, fr, es, cn)}, {Error 401(en-gb, en-us, de, it, fr, es, cn)}, {Error 500(en-gb, en-us, de, it, fr, es, cn)}

    Thanks in advance

    My web.config settings:

    <customErrors mode="Off" defaultRedirect="~/errors/error-404">
          <error statusCode="401" redirect="~/errors/error-401"/>
          <error statusCode="404" redirect="~/errors/error-404"/>
          <error statusCode="500" redirect="~/errors/error-500"/>
        </customErrors>

1 posts, 0 answered