401 login redirect

How to redirect my default Jahia web application login page to a customized one?

Question

I want to redirect unauthenticated users to a custom authentication application instead of the default one for my Jahia web application. How can I do that?

Answer

By default a request from an unauthenticated user will render the JSP webapps/ROOT/errors/error_401.jsp which will handle the default login page. To redirect the user to a custom page you can simply edit this page and add the following statement:

<c:redirect url="http://www.yourapplication.com"/>