cpmurphy-3_1754
Nov 05, 2014Nimbostratus
Issue with HTTP::URI with trailing /
First off I am an iRule newbie. I am having a bit of an issue with a trailing "/" in a redirect.
when HTTP_REQUEST {
if { [HTTP::uri] equals "/abc/" }{
HTTP::respond 301 Location "">
}
if { [HTTP::uri] equals "/abc" }{
HTTP::respond 301 Location "">
}
This is only a portion of the full rule. The issue is that when entering http://www.thisplace.com/abc the redirect works. However when entering http://www.thisplace.com/abc/, the redirect does not work. There are several other statements in the rule that are working without the trailing "/".
Thanks in advance.