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

Puli's avatar
Puli
Icon for Nimbostratus rankNimbostratus
Sep 21, 2010

remove a string in response URL

Hi,

 

 

wanted to get your opinion on if this is possible.

 

Am trying to strip out a string from the URL.

 

If a user enters www.foo.com/testing/foo.html in the browser

 

I need to remove the string /testing and display www.foo.com/foo.html in the browser.

 

 

I dumped the HTTP headers but it doesn't the location in the header.

 

Also tried STREAM approach, but no lock.

 

Appreciate any ideas.

 

 

thanks,

 

Venu.

 

1 Reply

  • Hamish's avatar
    Hamish
    Icon for Cirrocumulus rankCirrocumulus
    Sounds like you just want a simple iRule to gather the URI and do an HTTP::redirect...

    e..g (Untested)

      if { [HTTP::uri] equals "/testing/foo.html"} {
        HTTP::redirect "/foo.html"
      }
    

    Anything else won't get you the URL re-written in the browser location displayed to the user.

    H