Forum Discussion
Shlairshe_84486
Nimbostratus
Mar 20, 2015Assistance with multiple instance i-Rule using multiple http to https redirect
I am in what is referred to as HOT waters. I really need a solution to this issue by 11pm tonight.
Below is the irule I have working (v 11.4)
when HTTP_REQUEST {
set req [string tol...
he_qiang_137361
Mar 21, 2015Historic F5 Account
Here is the iRule,
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/artic*" {
HTTP::redirect https://[getfield [HTTP::host] ":" 1][HTTP::uri]
}
"/extartic1*" {
HTTP::redirect https://[getfield [HTTP::host] ":" 1][HTTP::uri]
}
"/port*" {
HTTP::redirect https://[getfield [HTTP::host] ":" 1][HTTP::uri]
}
}
}
Hope it helps, :).
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