High-level overview:
I have a number of web services that are currently mapped to a specific url pattern. We are in the process of trying to extract these web services into a separate module in the application which would necessitate a different url. Unfortunately, these are internet facing web services and therefore we have no control over the urls our clients are using.
I am looking to proxy the old url to the new url... redirect would not work here since it would require the web service clients to support redirects... something we again have no control over.
As an example I would like to proxy requests from:
http://www.mydomain.com/funkyurl/service
to
http://www.mydomain.com/prettyurl/service
The web services are running in WebSphere Application Server, I was hoping that I could do a simple url mapping between Apache and WebSphere using the WebSphere plugin (I have done this in the past with WebLogic) but that doesn't appear to be an option in the plugin config.
My next thought is basic RewriteRule like this:
RewriteRule ^/funkyurl(.*) http://www.mydomain.com/prettyurl$1 [QSA,P]
From what I understand from the RewriteRule documentation (http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html) the server I am proxying to can't be the same as the one doing the proxying.
Am I missing something? Do I have any options here?