FLHouse_151647
Jan 25, 2017Nimbostratus
iRule for specific URL from HTTPS to HTTP
iRule to redirect HTTPS back to HTTP only for specific URL with wildcard after ? "/VideoPlayer.aspx?eventID=2443575804_2017011157&committeeID=2911"
I have a iRule to redirect HTTP to HTTPS when visiting a site that starts with "/LD" but I need an iRule to redirect only "VideoPlayer.aspx?*" back to HTTP. This is what I started with, but it breaks my HTTPS requirement to redirect my /LD directory.
Any assistance would be greatly appreciated!
HTTPS assigned when HTTP_REQUEST { if { [HTTP::uri] contains "VideoPlayer" && [HTTP::uri] contains ".aspx?" } HTTP::redirect "http://[HTTP::host]$uri" }
HTTP assigned when HTTP_REQUEST { if { ( [string tolower [HTTP::uri]] starts_with "/ld" ) } { HTTP::redirect "https://[HTTP::host][HTTP::uri]" } }