Forum Discussion
MeAndMyBIGIP_60
Nimbostratus
Sep 02, 2009Nesting a redirect to another pool?
So I have an existing HTTP > HTTPS redirect rule running fine that's running on Pool1:
when HTTP_REQUEST {
HTTP::redirect https://[HTTP::host][HTTP::uri]
}
I have another, Po...
L4L7_53191
Nimbostratus
Sep 03, 2009Wow I got so focused on showing how string map may help that 404 I spaced the [HTTP::host] bit - thanks for the catch. At any rate, it may help to yank 'bar' from the URI if that's causing the issue on the backend. Something like:
when HTTP_REQUEST {
if {[HTTP::uri] equals "/bar"} {
HTTP::uri [string map {"bar" ""} [HTTP::uri]]
pool Bar_pool
}
}
-Matt
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