Forum Discussion
Stanislas_Piro2
Apr 28, 2017Cumulonimbus
Hi,
looking at your question, I think irule / Datagroup is not the best solution but LTM Policies.
You can create one policy with rules:
-
rule 1:
- condition : HTTP uri path starts with
/uri1/ /uri2/ /uri3/ /uri4/ /uri5/ /uri5/
- action http-reply
tcl:"http://my.newsite.com[HTTP::uri]"
- condition : HTTP uri path starts with
-
rule 2:
- condition : HTTP uri path starts with
/uri6/ /uri7/ /uri8/ /uri9/
- action http-reply
tcl:"http://my.newsite.com2[HTTP::uri]"
- condition : HTTP uri path starts with
the tcl format is supported since version 12.0. In previous version, the
tcl:
string must be removed.