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.

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