Redirect Include URI
Hi
I'm having trouble with the following iRule.
The requirement is to redirect any requests to https://download.test.back.com to https://download.test.back.com/bred/publicweb/status/gifb
Any requests directly to https://download.test.back.com/bred/publicweb/status/gifb should be rejected
when HTTP_REQUEST { if { [HTTP::host] equals "download.test.back.com" && [HTTP::path] equals "/" } { HTTP::redirect "https://[HTTP::host][HTTP::uri]/bred/publicweb/status/gifb"
}else {
if {[HTTP::uri] equals "/bred/publicweb/status/gifb" } {
reject
}
}
}
The response we are seeing towards the servers is something like this does not include the URI (/bred/publicweb/status/gifb)
----------------------------REQUEST--------------------------- URI=/MEkwRzBFMEMwQTAJBgUrDgMCGgUABBQ6UnYMs4JZvSkqZMdaftSSm1KopgQUIT1LBSePsKHPrvwmssmkgd76sn4CCHCEWSkqZPMv
I would like URL to be included on the way to the servers, like this:
----------------------------REQUEST--------------------------- URI=/bred/publicweb/status/gifb/MEkwRzBFMEMwQTAJBgUrDgMCGgUABBQ6UnYMs4JZvSkqZMdaftSSm1KopgQUIT1LBSePsKHPrvwmssmkgd76sn4CCHCEWSkqZPMv
Can someone point me in the right direction?
Thanks