sundogbrew
Jul 31, 2014Altocumulus
rule http::host change
I asked a question yesterday which was answered but I guess I need something different.
I asked to redirect to the host name of the URL which would work, but I need to strip the blabla.com off the name. So in the below example going to mycool.stuff.com/bla/bla my redirect will go to redirect.newdomain.com/mycool.stuff.com/more/stuff. I want to strip off "stuff.com" from HTTP::name to end with redirect.newdomain.com/mycool/more/stuff Is this doable?when HTTP_REQUEST {
if { [active_members [LB::server pool]] < 1 } {
HTTP::redirect "https://redirect.newdomain.com/[HTTP::name]/more/stuff"
}
}
Thanks Joe