Forum Discussion
Matt_Mueller_10
Nimbostratus
22 years agoHelp with removing certain header information from URI
Hello,
We're in the initial setup phase, and are having problems with our iRule. This is what we have so far....
Basically, the customer opens a weblink, lets say www.customerce...
22 years ago
There are several ways you can approach this. You could change your code a bit to not do the HTTP rewrite until you have evaluated all of the cases and use a variable to store the pool name like this:
when HTTP_REQUEST
{
set def_pool "Supporthomepage"
if { [HTTP::uri] starts_with "/webcentral" }
{
if { [HTTP::uri] contains "/customer1" }
{
set def_pool "customer1"
}
elseif { [HTTP::uri] contains "/customer2" }
{
set def_pool "customer2"
}
HTTP::uri "/archibus"
}
pool $def_pool
}
-Joe
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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