Handle 403 status code without redirecting to login page - Front- & Back-End Development - Front- & Back-End Development - Progress Community
 Front- & Back-End Development

Handle 403 status code without redirecting to login page

  • Handle 403 status code without redirecting to login page
  • 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?

  • 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.