Add backslash to URI

From Tech-Wiki
Jump to: navigation, search

Back to iRules

when HTTP_REQUEST {
   if { ([HTTP::uri] eq "/directory") and (!([HTTP::uri] ends_with "/"))  } {
     HTTP::uri "[HTTP::uri]/"
   }
}