drew_23351
Aug 15, 2014Nimbostratus
HTTPS to HTTP irule
I'm trying to get an irule to work, but can't figure out what's wrong. What I'm wanting to do is redirect an https request on one url to a http on a different url. The rule that's not working is:
when HTTP_REQUEST { if { [string tolower [HTTP::uri]] contains "somedomainname.com/coatty/" && [TCP::local_port] == 443 } { HTTP::redirect "http://somedomainname.com[HTTP::uri]" } }
Thanks