Forum Discussion
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, :).