'Tomcat rewrite.config how to redirect to wildcard?
We currently use the following rewrite rule in order to redirect requests to the root to our healtcheck endpoint:
RewriteRule ^/?$ /APP/something/somethingelse/status [L]
In our build we are replacing "APP" with the actual application name. This works fine. However, we would like to remove the part where we replace the "APP" and use something more generic. I have tried setting a wildcard like this:
RewriteRule ^/?$ /*/something/somethingelse/status [L]
But it does not work, the root now gives 404. Is there a way to make the rule more generic and accept any string in the "APP" part?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
