Hi mj16othman ,
> Try this :
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] starts_with "/mortgage" } {
HTTP::redirect "https://[HTTP::host]"
}
}
> Or try this :
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] starts_with "/mortgage" } {
HTTP::respond 301 noserver Location "https://[HTTP::host]"
}
}
Note : I would suggest the second iRule due to a 301 to minimize on repeat traffic from users. 301 is a permanent redirect and the browser will do an internal redirect next time the browser visits.
Try it and give me the feedback.
Regards