Forum Discussion
The_Bhattman
Oct 06, 2009Nimbostratus
To handle redirects there are a number of ways to handle this.
One example is the following
when HTTP_REQUEST {
if { ([HTTP::host] eq "www.something.com") and ([TCP::local_port] eq "80") and ([HTTP::method] eq "POST"}) } {
switch -glob [HTTP::uri] {
"/DealerNetwork/login*" -
"/DealerNetwork/registration.do*" -
"/DealerNetwork/forgotPasswd.do*" -
"/DealerNetwork/showProfile.do*"
{
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
}
}
}
}
In regards to the https to HTTP. You would need to make the SSL Cert is with the LTM otherwise it won't decrypt
the traffic for you to use the irule similiar to above.
Of course this is just a example.
I hope this helps
CB