Forum Discussion
Kai_Wilke
Feb 26, 2016MVP
Hi Rob,
if the HTTP virtual server is exclusively used for the redirect, then use this iRule...
when HTTP_REQUEST {
HTTP::redirect "https://iamqa.something.com:8443/aveksa/admin"
}
if the HOST-name
iamqa.something.com
is exclusively used for the redirect, then use this iRule...
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] eq "iamqa.something.com" } then {
HTTP::redirect "https://iamqa.something.com:8443/aveksa/admin"
}
}
if just the
/
(website root) of the HOST-name iamqa.something.com
should be redirected, then use this iRule...
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] eq "iamqa.something.com" } then {
if { [HTTP::uri] eq "/" } then {
HTTP::redirect "https://iamqa.something.com:8443/aveksa/admin"
}
}
}
Cheers, Kai