Forum Discussion
crodriguez
Apr 19, 2018Ret. Employee
You might be able to use something like this:
when HTTP_REQUEST {
if { [HTTP::uri] contains "//" } {
set URIquals [split [HTTP::uri] "/"]
set newURI ""
foreach qual $URIquals {
if { $qual ne "" } {
append newURI "/" $qual
}
}
HTTP::uri $newURI
}
}
I ran a small test using your input string above:
Before URI: /foo
After URI: /foo/bar/foobar?slashes=many