Forum Discussion
Hi,
the following irule should works for you :
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] starts_with "/efgh/abc/" } {
HTTP::respond 302 Location "https://abcd.com:8443/efgh/abc" Connection Close
}
}
ITS NOT WORKING HIC HIC
Jul 22 16:36:20 slot1/F5ExtDC warning mcpd[7748]: 01071859:4: Warning generated : /Common/https2https:2: warning: [deprecated usage, use else or elseif][ ] Jul 22 16:36:20 slot1/F5ExtDC err mcpd[7748]: 01070151:3: Rule [/Common/https2https] error: /Common/https2https:2: error: ["unexpected end of argument sequence."][log] /Common/https2https:2: error: [undefined procedure: local0.][local0.] /Common/https2https:2: error: [undefined procedure: test][if { [string tolower [HTTP::uri]] starts_with "/way4acs/enroll/" } log local0. "test" { HTTP::respond 302 Location "https://acbd.com:8443/efgh/abc/" Connection Close } ] Jul 22 16:36:35 slot1/F5ExtDC warning mcpd[7748]: 01071859:4: Warning generated : /Common/https2https:2: warning: [deprecated usage, use else or elseif][ ]