Forum Discussion
Joseph_Cannon_4
Nimbostratus
Aug 18, 2005redirect and use same pool
We would like to change the hostname of the website and have user dynamically redirected, even if they have it bookmarked with a long uri.
DNS resolves the same for both names.
Here is what I thought would have worked.
if (http_host contains "abc") {
redirect to "https://cba.mycompany.com/%u"
use pool cba
}
else {
use pool cba
}
Any thoughts?
Thanks.
- a redirect will send a HTTP redirect to the url you specify back to the browser so you don't need to specify the "use pool cba" after the redirect.
if (http_host contains "abc" ) { redirect to "https://cba.mycompany.com/%u" }
- Disregard the comment about omitting the default pool. I was thinking BIG-IP v9.x, not 4.x.
- Martin_MachacekHistoric F5 AccountIn BIG-IP v4.x "redirect to" and "use pool" statements are mutually exclusive. There is also little reason why to pick a node to answer the request if the rule has already determined that redirect (HTTP 302) need to be returned.
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