AlexDeMarco
Oct 07, 2013Nimbostratus
Redirect question
Over the past year or so our redirect irule has grown and grown I am trying to stream line it a bit.
Here is a snippet of what I had: if { ( $req_uri starts_with "/amps") or ( $req_uri starts_with "/amps/") or ( $req_uri starts_with "/emergencycontact") or ( $req_uri starts_with "/emergencycontact/") or ( $req_uri starts_with "/counselor") or ( $req_uri starts_with "/counselor/*") } then { HTTP::redirect "https://[HTTP::host][HTTP::uri]" }
I want to be sure the www.myurl.com/amps and anything under amps gets redirected into SSL. Is there a better way to do this? I know I could make a datagroup (which I probably will do) but what about the code?
thanks in advance..
- Alex