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

Forums / Developing with Sitefinity / Handle 403 status code without redirecting to login page

Handle 403 status code without redirecting to login page

2 posts, 0 answered
  1. David Arnold
    David Arnold avatar
    13 posts
    Registered:
    31 Jul 2009
    20 Jan
    Link to this post

    Following the article http://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?

  2. David Arnold
    David Arnold avatar
    13 posts
    Registered:
    31 Jul 2009
    24 Jan
    Link to this post
    I wound up handling the 403 code in the project's Global.ascx.cx file using the example here: http://www.sitefinity.com/blogs/stefani-tacheva-s-blog/2014/03/11/redirect-unauthorized-users-to-a-custom-page.
2 posts, 0 answered