Forum Moderators: phranque

Message Too Old, No Replies

httpd rule to remove partial URL

         

net_mx

5:47 am on Sep 20, 2011 (gmt 0)

10+ Year Member



I'm setting up a reverse proxy and this is the first time working with mod_rewrite. After some long research, I believe rewrite or alias is the trick to resolve my problem.

Apache Config
ProxyPass /site123/ [x.x.x.x:8443...]
ProxyPassReverse /site123/ [x.x.x.x:8443...]

This portion is working okay, except when a user clicks on a button, the url shows as: /portalapp/controller?handler=LoginHandler&action=noaction (embeded html code)

When that happens, the new URL in the browser ends up as [x.x.x.x...]

I'm trying to get it to show up as: [x.x.x.x...]

I'm trying to use Rewrite to look for the /portalapp/ and remove it.

Any suggestions?

Thank you