Handle 403 status code without redirecting to login page

Posted by Community Admin on 04-Aug-2018 15:59

Handle 403 status code without redirecting to login page

All Replies

Posted by Community Admin on 20-Jan-2017 00:00

Following the article docs.sitefinity.com/administration-custom-error-pages, I set up custom errors in our web.config to handle 403, 404, and 500 codes, which redirect to custom error pages in Sitefinity. I set up a test page for the 403 and set its permissions to disable viewing by "Everyone". I then logged out of Sitefinity and navigated to the test page.  I expected to see the custom error page we set up for the 403, but instead was redirected to the Sitefinity login page. How can I prevent it from redirecting to the login?

Posted by Community Admin on 24-Jan-2017 00:00

I wound up handling the 403 code in the project's Global.ascx.cx file using the example here: www.sitefinity.com/.../redirect-unauthorized-users-to-a-custom-page.

This thread is closed