Forum Discussion
sandy16
Altostratus
Apr 14, 2015redirection irule does not work on chrome and Firefox
Hi experts, i have the following redirection irule -
when HTTP_REQUEST {
if {[HTTP::host] equals "www.example.ca"}{
HTTP::redirect "https://example.ca"
}
}
so when a client...
cjunior
Nacreous
Apr 14, 2015Try:
when HTTP_REQUEST {
log local0. "requested host: [HTTP::host]"
if { [string tolower [HTTP::host]] equals "www.example.ca" } {
log local0. "Sending HTTP 302 redirection"
HTTP::respond 302 Location "https://example.ca"
} else {
log local0. "Do nothing for current request"
}
}
and tail the LTM log on ssh Linux:
tail -f /var/log/ltm
Apr 14 14:06:08 bigipbeta info tmm1[15283]: Rule /Common/rule_to_redirect : requested host: www.example.ca
Apr 14 14:06:08 bigipbeta info tmm1[15283]: Rule /Common/rule_to_redirect : sending HTTP 302 redirection
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
