Forum Discussion
Rusty_Tripp_798
Mar 14, 2012Nimbostratus
iRule not working properly
Hello,
I am using the iRule below but when I enter http://site.name/bd, I don't get redirected to http://site.name/bd/folder/...
Any help would be greatly appreciated.
Ru...
nitass
Mar 15, 2012Employee
e.g.
[root@ve1023:Active] config b virtual bar list
virtual bar {
snat automap
pool foo
destination 172.28.19.79:80
ip protocol 6
rules myrule
profiles {
http {}
tcp {}
}
}
[root@ve1023:Active] config b rule myrule list
rule myrule {
when HTTP_REQUEST {
if {([HTTP::uri] equals "/") or ([HTTP::uri] equals "/levi_b2b/init.do")} {
HTTP::uri "/levi_b2b/init.do"
} elseif {[HTTP::uri] equals "/bd"} {
HTTP::redirect "/bd/public/frameset_top_html.jsp"
} else {
HTTP::redirect "http://leo.levi.com/index.htm"
}
}
}
[root@ve1023:Active] config curl -I http://172.28.19.79/bd
HTTP/1.0 302 Found
Location: /bd/public/frameset_top_html.jsp
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