Dsliz,
One of them may look like this:
policy-map multi-match SAP-HTTP-REDIRECT-POLICY-MAP
class SAP-REDIRECT-CM
loadbalance vip inservice
loadbalance policy SAP-REDIRECT-POLICY
loadbalance vip icmp-reply
class-map match-any SAP-REDIRECT-CM
3 match virtual-address 10.148.185.249 tcp eq ww
policy-map type loadbalance first-match SAP-REDIRECT-POLICY
class class-default
serverfarm SAP-HTTP-REDIRECT
serverfarm redirect SAP-HTTP-REDIRECT
rserver SAP-HTTP-REDIRECTOR
inservice
rserver redirect SAP-HTTP-REDIRECTOR
conn-limit max 4000000 min 4000000
webhost-redirection https://sap.mydomain.com/abc/init.do?language=de 301
inservice
You did not include the rest of the configuration for example for this:
class L7CM-B2C-DEMOSHOP
Additionally, you may need to see about matching seconday cookies as shown here, since it is required to match after "?" sometimes.
http://www.cisco.com/en/US/docs/interfaces_modules/services_modules/ace/vA5_1_0/command/reference/policy.html#wp2336441
Jorge