Mr_777_63981
Apr 06, 2012Nimbostratus
Redirection Issues
Hi everyone,
i am facing a problem and unable to solve it. I hope someone will help me solving this issue.
Let me explain the scenario.
In Data Group Members i have two lists say Secure and UnSecure, both of these have the URL patterns. Let's see the contents of these two lists.
Secure:
/abc
/x/ghj
httpsecure=y
httpsecure=Y
UnSecure:
/abc
/x/ghj
httpsecure=y
httpsecure=Y
In iRules i have two files again named Secure and UnSecure.
Secure:
when HTTP_REQUEST {
// Here is an if condition that actually looks if the request(url pattern) is in the UnSecure List. //If it's not, below line executes
HTTP::redirect https://[HTTP::host][HTTP::uri]
}
}
UnSecure:
when HTTP_REQUEST {
// Here is an if condition that actually looks if the request(url pattern) is not in the UnSecure List. //If it's not, below line executes
HTTP::redirect https://[HTTP::host][HTTP::uri]
}
}
Now, if i land on /x/ghj page, it takes me to the https but as soon as i get back to another page say /zxcv, it keeps me on https. Can anyone kindly help me how can i redirect myself to http once i go to /zxcv from /x/ghj
I am looking for help and hope i will get it.
Regards...