how to redirect an application to error page when accessing without context root

133 views Asked by At

I am working on Jboss EAP 7 application server. My java application is configured with a context root of '/myapps' in jboss-web.xml file.

My issue here is when I access the application without context-root (till port number) I need to redirect the application to an error page (404 page) which is there in our application ear. example : here is my app url - http://localhost:8102/myapps/login.
If I try to access the application like below URL it should redirect to a custom error jsp page. http://localhost:8102/login.

Please let me know.

Thanks

0

There are 0 answers