For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

computerli's avatar
computerli
Icon for Altostratus rankAltostratus
Apr 02, 2018

Need to remove part of URI from the request without redirect

I need to remove part of URI from the request without redirect For example, remove /record

 

WHEN https://abc.com/record/outland.1234f4fe1.le.js

 

GO TO https://abc.com/outland.1234f4fe1.le.js

 

WHERE

 

/record is static

 

/outland.1234f4fe1.le.js is dynamic, i.e can be any other string

 

Redirect is also not an option

 

1 Reply

  • Untested. You should be able to tweak it to suit your needs. You can also explore HTTP policy for similar change.

    when HTTP_REQUEST {
      if {[HTTP::uri] contains "/record/"} {
      HTTP::uri [string map {"/record/" "/"} [HTTP::uri]]
    }
    }