Dave_21507
Oct 01, 2009Nimbostratus
HTTP::uri starts_with - how to make it case insensitive?
Hello everyone,
I have the following iRule in place and it works great, but discovered that a "workaround" is using onlineusers.aspx or any other combination of case (e.g., OnLineUSerS.ASPx wouldn't redirect to login.aspx).
when HTTP_REQUEST {
if { ( [HTTP::uri] starts_with "/OnlineUsers.aspx" )
and ( not [ matchclass [IP::client_addr] equals $::ips_irule ] ) }{
HTTP::redirect https://[HTTP::host]/login.aspx}}
Is there a way to modify it so it's not case sensitive?
Thanks!