Forum Discussion
Brantly_Perry_1
Nimbostratus
Sep 03, 2008Redirect only parially working...
Hello, I'm new to this forum, and also new to iRules. Just wanted to run a rule by some of you more seasoned iRule experts.
when HTTP_REQUEST {
if { [HTTP::path] eq "/" }{
...
hoolio
Cirrostratus
Sep 05, 2008Do you get a TCL error in /var/log/ltm when the second redirect doesn't work? What response does the client get from the VIP? Is it a TCP reset or some kind of HTTP response? If you test with Fiddler for IE or LiveHttpHeaders for Firefox, you can see if there is an HTTP response. Also, can you add logging to the rule so you can see if it's being triggered as you expect?
when HTTP_REQUEST {
if { [HTTP::path] eq "/" }{
HTTP::redirect "https://www.mynurseonline.com/member/"
log local0. "[IP::client_addr]:[TCP::client_port]: [HTTP::path] matched path /"
} elseif { [HTTP::host] eq "mynurseonline.com" }{
log local0. "[IP::client_addr]:[TCP::client_port]: [HTTP::path] matched host: mynurseonline.com"
HTTP::redirect "https://www.mynurseonline.com/member/"
}
}
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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