Forum Discussion
2 Replies
Sort By
- rob_carrCirrostratus
Have you looked at using the string map function against the URI?
 
- crodriguezRet. 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