Forum Discussion
kupaloid_50119
Nimbostratus
Oct 05, 2011Dynamic redirect
Hi, I am a newbie to irule and can only do basic redirect. But we have a requirement for dynamic redirect. Can someone help?
http://www.abc.com/test/[placeholder]
permanent red...
nitass
Employee
Oct 05, 2011[root@tulip:Active] config b virtual bar list
virtual bar {
destination 172.28.17.66:http
ip protocol tcp
rules myrule
profiles
http
tcp
}
[root@tulip:Active] config b rule myrule list
rule myrule {
when HTTP_REQUEST {
HTTP::redirect "http://abc.123.net/dc?purl=[string range [HTTP::uri] 6 end]"
}
}
[root@tulip:Active] config curl -I http://www.abc.com/test/abc
HTTP/1.0 302 Found
Location: http://abc.123.net/dc?purl=abc
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