cancel
Showing results for 
Search instead for 
Did you mean: 
Login & Join the DevCentral Connects Group to watch the Recorded LiveStream (May 12) on Basic iControl Security - show notes included.

URI Replacement for every request

Santhosh
Nimbostratus
Nimbostratus

Need help on URI replacement. the below irule is only working for the initial request but not the other request after getting in to the application somehow.

 

when HTTP_REQUEST {

   set http_uri [HTTP::uri]

   set http_host [string tolower [HTTP::header "Host"]]

 

   if { [HTTP::uri] matches_glob "/profile" } {

       HTTP::uri [string map {/profile /account} [HTTP::path]]

      SSL::disable serverside

       pool ABCD

   }

else {

Pool XYZ

}

}

2 REPLIES 2

Shaun_Simmons
F5 Employee
F5 Employee

This DevCentral Article may help. it goes into detail to explain what you may be experiencing.

 

Single URL Explicit Redirect

https://devcentral.f5.com/s/articles/irule-recipe-1-single-url-explicit-redirect-21910

 

 

Santhosh
Nimbostratus
Nimbostratus

@Shaun. I don't redirection actually I want to replace the URI and also referer.