Add backslash to URI

From Tech-Wiki
Revision as of 15:54, 20 May 2019 by Fabricio.Lima (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Back to iRules

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