Forum Discussion
youssef1
Jun 01, 2018Cumulonimbus
Hi,
You trigge your irule to "HTTP_REQUEST" it's too late try this:
when RULE_INIT {
set redirect 0
if { [URI::protocol [HTTP::uri]] eq "https" } {
set redirect 0
event disable all
} else {
set redirect 1
}
}
when HTTP_REQUEST {
if { $redirect } {
HTTP::redirect https://[getfield [HTTP::host] ":" 1]:8080[HTTP::uri]
event disable all
}
}
Keep me in touch
regards