401 login redirect Developer System Administrator Jahia 7.3 Jahia 8 Legacy

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


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?


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"/>

You can also:

  • override the errors at the front-end level (Nginx/IIS/Apache2)
  • use the community module (not supported by Jahia) Customize error pages