Hi
Using apache I am trying to rewrite the Apex path from http://oldservername.co.uk:8001/apexf?p=150 to http://apps.newservername/applicationname leaving out the 150 and rewriting the path.
I am using the following below but I cannot get this working properly, and would appreciate any insight into where I am going wrong?
Define SRVROOT "/Apache24"
ServerRoot "${SRVROOT}"
Listen 80
RewriteEngine On
RewriteRule ^/(applicationname)$ http://apps.newservername.co.uk/$1/f?p=150:LOGIN:0 [R=302,NC,L]
ProxyRequests Off
<Proxy *>
Order deny,allow
Deny from all
Allow from all
</Proxy>
<Location /applicationname>
ExpiresActive On
ExpiresDefault "now"
RewriteEngine on
# Allow access if the app is 150
RewriteCond %{QUERY_STRING} ^p=(.*)
RewriteCond %{QUERY_STRING} !^p=150.*
# If the above rules match, then deny access
RewriteRule /.* [F]
SetEnv force-proxy-request-1.0 1
ProxyPass http://oldservername.co.uk:8001/apext6
ProxyPassReverse http://oldservername.co.uk:8001/apext6
</Location>