Forum Discussion
Derek_Rice_2913
Nimbostratus
Apr 20, 2017iRule help. Redirect works, but intermittenetly.
(Disclaimer: I am very new to iRules)
BIG-IP 12.1.0 Build 1.0.1447 Hotfix HF1
BIG-IP 4000 series
when HTTP_REQUEST { if { [HTTP::host] equals "test.mail.company.com" } { HTTP::redirect "ht...
Hectorm
Nimbostratus
Apr 20, 2017Also this is case sensitive so I will change everything to lower case before I check the condition. This may explain why it works some of the time when HTTP_REQUEST {
set Vuri [ string tolower [HTTP::uri]]
set Vheader [ string tolower [HTTP::host]]
if { $Vheader equals "test.mail.company.com"} {
HTTP::redirect "https://test.mail.company.com/send_auth.cgi[HTTP::uri [string trimright [HTTP::uri] "/"]]"
}
}
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