Forum Discussion
Anthony
Jul 05, 2012Nimbostratus
Probably a very sinple request... if you know how
Hi all. I've been doing various work in the LTM and recently ASM, and now I need to start working on iRules.
I know what I want to do, but for some reason I'm getting mixed results.
...
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
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects