dbizzle_20930
Oct 01, 2012Nimbostratus
yet another redirect question
so heres my question. i have a simple irule that will redirect to a new host/uri based on the incoming request. however what i'm discovering is that apparently its not as simple as i had originally thought. i dont seem to understand why the orignial URI still gets appended to the redirected uri..
when HTTP_REQUEST {
set dest https://some.host.com/singleuri
switch -glob [string tolower [HTTP::host][HTTP::uri]] {
"some.other.host.com/anotheruri/*" {
HTTP::respond 301 Location "$dest[HTTP::uri]"
}
}
}
this works, yet the new uri contains "/singleuri/anotheruri/".. what am I doing wrong?