Hi rajendra,
You could skip the [HTTP::host] value compare if it the desired hostname "aeadebab.adp.ae" is the only one pointed to the Virtual Server and then just handle the redirects.
If there are multiple hostnames pointed to that Virtual Server, then you will need to include it.
This iRule will append "/webcenter" to any new connections automatically and is set to append the full URL for any requests beginning in "/console*".
You can add as many conditions as you like to the switch statement and then add the default pool name that the traffic should be routed to if none of these conditions are met (or change the pool direct to a redirect to another page).
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/" { HTTP::redirect "/webcenter" }
"/console*" { HTTP::redirect "/console.full.location.url" }
default { pool pool.name }
}
}
Hope this helps.