Forum Discussion
nitass
Jun 19, 2013Employee
another one. 🙂
[root@ve10:Active] config b rule myrule list
rule myrule {
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/SEC+TEST/" } {
if { [scan [HTTP::uri] {/SEC+TEST/%*[^/]/%[^.].htm} y] == 1 } {
HTTP::redirect "http://myotherwebsite.com/folder1/folder2/KB/redirect.aspx?id=$y"
}
}
}
}
[root@ve10:Active] config curl -I http://172.28.19.252/SEC+TEST/987654321abc/xyz123.htm
HTTP/1.0 302 Found
Location: http://myotherwebsite.com/folder1/folder2/KB/redirect.aspx?id=xyz123
Server: BigIP
Connection: Keep-Alive
Content-Length: 0