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

Forums / General Discussions / Custom Errors In Sitefinity

Custom Errors In Sitefinity

4 posts, 1 answered
  1. Shatrughna
    Shatrughna avatar
    4 posts
    Registered:
    23 Jul 2012
    02 Apr 2013
    Link to this post
    I am trying to implement custom error locale wise in sitefinity.
    In web.config I am using ..
      <customErrors mode="On">
          <error statusCode="404"  redirect="/error"  />
          <error statusCode="500"  redirect="/error" />
        </customErrors>

    Here error is a template page (I need to create template page can't use general aspx page)
    Now on error I want my error screen should come locale wise(if i am in china error message of china should come).

    Thanks,
    Shatrughna Kumar
    Answered
  2. Atanas Valchev
    Atanas Valchev avatar
    414 posts
    Registered:
    04 Jan 2016
    05 Apr 2013
    Link to this post
    Hi Shatrughna,

    Once you have the custom error page set up, you can add a code behind to it(from title and properties) or a simple user control which will perform a check for the culture of the browser currently accessing the page. After that, depending on the culture detected, a redirect to the error page in the appropriate language will be performed. For example, if it detects that the user is from Germany it will redirect him to  the German page www.mysite.com/de/error.

    Regards,
    Atanas Valchev
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Shatrughna
    Shatrughna avatar
    4 posts
    Registered:
    23 Jul 2012
    23 May 2013 in reply to Atanas Valchev
    Link to this post
    Thanks Atanas for your assistance.
    I have figured out this issue.
  4. Atanas Valchev
    Atanas Valchev avatar
    414 posts
    Registered:
    04 Jan 2016
    24 May 2013
    Link to this post
    Hello,

    I am glad that you found a solution. Should you have further questions, do not hesitate to open a support ticket. 

    Regards,
    Atanas Valchev
    Telerik
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
4 posts, 1 answered