Forum Discussion
Thomas_Gobet
Feb 26, 2014Nimbostratus
Hi,
Just to avoid too many redirects you could apply this iRule to your http virtual servers.
when HTTP_REQUEST {
HTTP::redirect "https://[getfield [HTTP::host] ":" 1]/welcome/welcome.htm"
}
I think you'll have a problem with the second iRule because the redirect statement is not complete, you have to define the full URL.
when HTTP_REQUEST {
if { [HTTP::uri] eq "/" } {
HTTP::redirect "https://[getfield [HTTP::host] ":" 1]/example1/example.htm"
}
}