Forum Discussion
rajendra_106871
Mar 19, 2012Nimbostratus
irule for the redirection
Dear Friends, We configured BIG-IP LTM with webcenter below is the virtual
server for the same. Aeadebab When I type aeadebab it should append uri /web...
Michael_Yates
Mar 20, 2012Nimbostratus
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.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects