Forum Discussion
shaggy
Nov 12, 2014Nimbostratus
I think "string trimright" is what you need instead of "string map"
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] ends_with "/" } {
HTTP::redirect http://[HTTP::host][string trimright [HTTP::uri] "/"]
}
}
note - this currently also matches a lone "/", so http://abc.com/ will be redirected to http://abc.com
Do you want to redirect the user to the new URI or pass the modified URI to the pool member?