Scrub/Replace double backslashes

Hi,

Given this example, www.somewhere.com/folder/folder2//page, which is the must efficient way to scrub the two backlashes to one, ending with www.somewhere.com/folder/folder2/page… a policy?

Thanks

J

A policy is preferred and is more efficient. Here’s the policy rule for this:

check_double_slash {
            actions {
                0 {
                    http-uri
                    replace
                    path "tcl:HTTP::uri [ string map {// /} [HTTP::uri]]"
                }
            }
            ordinal 5
        }

.