Use the REQUEST_METHOD environment variable in apache conf to accomplish this.
Add a condition for the HTTP METHOD.
ReWriteEngine on
RewriteCond %{REQUEST_METHOD} ^GET
RewriteRule ^/ef/bsslp/associations/party?(.*) http://hostA:9080/ef/efbslp/services/rest/viewBsslpPartyAssociation?$1 [P]
RewriteCond %{REQUEST_METHOD} ^POST
RewriteRule ^/ef/bsslp/associations/party$ http://hostA:9080/ef/efbslp/services/rest/addBsslpPartyAssociation [P]
RewriteCond %{REQUEST_METHOD} ^PUT
RewriteRule ^/ef/bsslp/associations/party$ http://hostA:9080/ef/efbslp/services/rest/updateBsslpPartyAssociation [P]
Add a condition for the HTTP METHOD.
ReWriteEngine on
RewriteCond %{REQUEST_METHOD} ^GET
RewriteRule ^/ef/bsslp/associations/party?(.*) http://hostA:9080/ef/efbslp/services/rest/viewBsslpPartyAssociation?$1 [P]
RewriteCond %{REQUEST_METHOD} ^POST
RewriteRule ^/ef/bsslp/associations/party$ http://hostA:9080/ef/efbslp/services/rest/addBsslpPartyAssociation [P]
RewriteCond %{REQUEST_METHOD} ^PUT
RewriteRule ^/ef/bsslp/associations/party$ http://hostA:9080/ef/efbslp/services/rest/updateBsslpPartyAssociation [P]
No comments:
Post a Comment