Forum Discussion
nitass
Jul 05, 2012Employee
is it something like this?
[root@ve10:Active] config b rule myrule list
rule myrule {
when HTTP_REQUEST {
if { not ([HTTP::uri] equals "/") and \
not ([HTTP::uri] contains "gb/en_gb")} {
HTTP::redirect "http://[HTTP::host]/gb/en_gb[HTTP::uri]"
}
}
}
[root@ve10:Active] config curl -I http://172.28.19.79/something
HTTP/1.0 302 Found
Location: http://172.28.19.79/gb/en_gb/something
Server: BigIP
Connection: Keep-Alive
Content-Length: 0