Thanks alot for the help.
I want to create one irule which satisfy both the below conditions
1. http://abc.com/secure/* ----------it should redirect to https://abc.com./secure/* --works all fine. (Thanks for the help guys)
2. https://abc.com/* ---it should redirect to http://abc.com/*-- ( Still not working)
Can you please check my irule
when HTTP_REQUEST { if { [HTTP::uri] contains "secure"} {
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
}
when HTTPS_REQUEST { if {not ([HTTPS::uri] starts_with "/secure")} {
HTTPS::redirect "http://[HTTP::host][HTTP::uri]"
}
Thanks for the help