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

kamlyada_209668's avatar
kamlyada_209668
Icon for Nimbostratus rankNimbostratus
Oct 05, 2015

Redirection on below url as mentioned below and keep the original url as it is...

Hello All,

 

what requires is mentioned below.

 

https://uat.toolboxbo.kamlesh.com/toolbox Shoud redirect to http://cfrsv50143005ap.p2-eu.kamlesh.net:9080/toolbox

 

https://uat.toolboxbo.kamlesh.com/toolbox?example=123 Shoud redirect to http://cfrsv50143005ap.p2-eu.kamlesh.net:9080/toolbox?example=123

 

General rule: everything after the / should be keeped in the redirection

 

https://uat.toolboxbo.kamlesh.com/somethingelse Shoud redirect to http://cfrsv50143005ap.p2-eu.kamlesh.net:9080/somethingelse

 

Also Client wants to keep the original URL...

 

Anyone please help.Thank in advance.

 

1 Reply

  • Is 'uat.toolboxbo.kamalesh.com' the only HTTP Host serviced from this Virtual Server, or are there others for which the redirection should be omitted? Also, has your client specified if it's a permanent redirection mapping, or only temporary redirect which will be removed some day?

     

    You can use the code below, but only if you do not have other HTTP Hosts serviced from the same Virtual Server.

     

    when HTTP_REQUEST {
    
       Replace 302 with 301 if it's a permanent change.
      HTTP::respond 302 Location "http://cfrsv50143005ap.p2-eu.kamlesh.net:9080[HTTP::uri]" Connection Close
    
    }