Hi. I'm not 100% sure this can be done with mod_rewrite, I'm pretty new tio t all but have been through the tutorials and have been banging my head against the wall
I have two servers:
www.myapache.com
www.mysap.com
one is running plain apache and the other has a SAP application on it, SAP is on the LAN and Apache is in the DMZ (I don't think this is really relevant for the purposes for my question, but thought I'd add it just in case!)
SAP apparently works on services, what I need done is for certain URL's coming into the apache server to then get forwarded to the sap server on the LAN and the content displayed back onto the apache server in the DMZ, I've got mod_rewrite working and can get the apache to forward all requests but can get the proxy to return the results without the server name changing to www.mysap.com or returning a Server Error message!
Here's one example of the URL that users will be clicking:
http://www.myapache.com/sap/bc/webdynpr ... anguage=EN
Here's the Apache rewrite rule: There's about 10 of these, what SAP call services, lines like these 'hrrcf_a_startpage_ext'
RewriteRule ^sap/bc/webdynpro/sap/hrrcf_a_startpage_ext(.*)$ https://www.mysap.com:1443/sap/bc/webdy ... anguage=EN [P,L]
Any help greatly appreciated