If, for some reason, you do not want to do this in your reverse proxy as Brian suggested, you can also achieve the same thing via Servlets.
There's a tutorial for this right here:
Servlet Redirect vs Forward | BaeldungIf you happen to have a lot of those redirects or need a broader syntax, you can also use the
urlrewrite dependency (a servlet filter) which accepts Apache httpd /
IHS (IBM httpd server) syntax.
Let us know if either of those solutions where helpful!
------------------------------
Benjamin Marwell
System Engineer
Finanz Informatik
Hanover
------------------------------
Original Message:
Sent: Wed May 18, 2022 10:56 AM
From: Sumit Tiwari
Subject: Escape special character in Application URL
Hello There,
I'm trying to access my spring MVC application using this URL - servername:portname/userportal/login.
But there is requirement to use older URL as - servername:portname/"application Context name"/login.jsp. However, it seems that if i try to use this URL my application doesn't allow it.
Is there any way to configure this on WAS console so that when ever user enters URL as - servername:portname/userportal/login.jsp, it should change URL or redirect it to servername:portname/userportal/login.
Any solution/leads would be highly appreciated.
------------------------------
Sumit Tiwari
------------------------------