Custom Errors In Sitefinity - General Discussions - General Discussions - Progress Community
 General Discussions

Custom Errors In Sitefinity

  • Custom Errors In Sitefinity
  • 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
  • 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
  • Thanks Atanas for your assistance.
    I have figured out this issue.
  • 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