Forum Discussion
Jad_Tabbara__J1
Jun 01, 2017Cirrostratus
Hello Chenco,
Add this irule to your HTTP VS
when HTTP_REQUEST {
if { [string tolower [HTTP::path]] starts_with "/page1/" } {
do nothing only log to verify that it works properly
log local0. "[HTTP::path]"
} else {
HTTP::redirect https://[getfield [HTTP::host] ":" 1][HTTP::uri]
}
}
And add this irule to your HTTPs VS
when HTTP_REQUEST {
if { [string tolower [HTTP::path]] starts_with "/page1/" } {
HTTP::redirect http://[getfield [HTTP::host] ":" 1][HTTP::uri]
} else {
do nothing only log to verify that it works properly
log local0. "[HTTP::path]"
}
}