Joe_Pipitone
Aug 25, 2009Nimbostratus
Redirect rule somewhat working
Hello all,
I'm having a small issue with an iRule. My rule is below:
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] equals "/redirectme" } {
HTTP::redirect "http://sitename.com/newuri"
}
}
This rule works just fine if you type http://sitename/redirectme.
However, the rule does not redirect if you append a / after, for example:
http://sitename/redirectme/
How can I match this so it will redirect both redirectme and redirectme/ ?
Is this possible using this type of iRule?
thank you for any help!