Forum Discussion
Rias_212360
Nimbostratus
Jul 22, 2015iRule to redirect based on context
Hi,
I would like to redirect as the following and the user must see the initial address on their browser; not the redirected IPaddress.
https://abc.website1.com/123 to an...
Kevin_Stewart
Employee
Jul 22, 2015The easier option may be to put each of these internal IP addresses into separate pools and then do something like this:
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/123*" { pool pool_123 }
"/456*" { pool pool_456 }
"/789*" { pool pool_789 }
}
}
Where "pool_123" is the pool that contains the server with ipaddress1, etc. You're not technically redirecting but rather proxying the traffic. The client will only see the URL that they entered.
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