Forum Discussion
2funky_105078
Cirrus
Aug 09, 2013Recursive HTTP redirection, why?
Hello,
I tried the following irule which had this idea
if i go to http://www.example.com/, then it should redirect to
http://www.example.com/_bla1bla2bla3?/
when HTTP_REQU...
nitass
Employee
Aug 09, 2013HTTP::redirect http://thenest-eur-de.example.com/_bla1bla2bla3?[HTTP::uri]
pool mypool pool won't be executed because HTTP::redirect already send response to client.
by the way, if my_pool is already assigned to the virtual server, you can adjust the irule something like this.
when HTTP_REQUEST {
if { [active_members [LB::server pool]] > 0 } {
if { not ([HTTP::uri] starts_with "/_bla1bla2bla3?") } {
HTTP::redirect "http://thenest-eur-de.example.com/_bla1bla2bla3?[HTTP::uri]"
}
} else {
HTTP::redirect "http://whatever.com"
}
}
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