Custom Errors In Sitefinity

Posted by Community Admin on 03-Aug-2018 15:57

Custom Errors In Sitefinity

All Replies

Posted by Community Admin on 02-Apr-2013 00:00
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
Posted by Community Admin on 05-Apr-2013 00:00
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
Posted by Community Admin on 23-May-2013 00:00
Thanks Atanas for your assistance.
I have figured out this issue.
Posted by Community Admin on 24-May-2013 00:00
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
This thread is closed