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,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,