Custom Login page in 5.1
In my Sitefinity 5.0 site, I had a custom login page for frontend users. When unauthenticated users tried to access a restricted page, I redirected them to our front-end login page using custom errors.
In Sitefinity 5.1, attempting to access a page for which you don't have permission simply results in Sitefinity redirecting the user to the internal backend "Login to manage the site" login.
Is there a way to configure Sitefinity to use my login page instead of the built-in backend login page?
Please let me know if you have resolved this issue. We are also experiencing this in our site, except users are actually being sent to the back-end login page when they try to go to our front-end login page using 5.1.
Hi,
Please review the following blog post where you will find further information:
http://www.sitefinity.com/blogs/stefani-tacheva-s-blog/2013/02/01/redirect-unauthorized-users-to-a-custom-page
Note that the blog post is for Sitefinity versions 5.1 SP2 and above.
For Sitefinity 5.1 and Sitefinity 5.1 SP1 what we would suggest you is to use custom errors. These custom errors are coming from ASP.NET application. Sitefinity do not redirect users to the login page when they are not authenticated. However, this message can be handled in the customErrors element in you web.config to automatically redirect the user to the login screen.
For instance:
<
customErrors
mode
=
"On"
defaultRedirect
=
"GenericErrorPage.htm"
>
<
error
statusCode
=
"403"
redirect
=
"~/Sitefinity"
/>
</
customErrors
>