We have a Tomcat application from a vendor running with Apache in front of it, but we don't have access to the application code. We have our own single sign on wrapped around the application, so if a user clicks "Log Out" in the application, the user is taken to an unused "Login" screen. We would like to redirect that Login screen to the default Tomcat page, but I can't seem to get the syntax right.
I've tried a number of adjustments with no luck (escaping the /'s, etc). Does anyone have any ideas? I already have an HTTP to HTTPS redirect working (included in the directives below).
The "Logout" link goes through a few redirects, ultimately ending on: http://ourserver.com/abc/login
To keep things simple, we'd like to redirect any request for the login page to: http://ourserver.com/
<VirtualHost *:80>
RewriteEngine On
RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R=301,L]
RewriteRule ^/abc/login$ / [L]
</VirtualHost>