Sergio_Magra
Oct 08, 2013Nimbostratus
URI based redirect
Hi all,
We need to make a redirection based on certain URI, but it does not work due to be incompleted. We made an iRule for this.
We need that if we receive the following URI:
http://testsite/index.xml!somepage.html
The redirection sends to:
https://testsite/index.xml!somepage.html
But after applying the iRule, the browser is redirected to:
https://testsite/somepage.html
The iRule looks that the following:
when HTTP_REQUEST {
if { [HTTP::path] ends_with "somepage.html" }{
log local0.alert "https://[HTTP::host][HTTP::uri]”
HTTP::redirect “https://[HTTP::host][HTTP::uri]”
}
}
What I'm doing wrong?
Thanks and best regards
Sergio