Forum Discussion
Mariusz_B
Nimbostratus
Sep 05, 2014Problems with redirections
Hello,
This is my first post here, so welcome everybody 🙂
I need some help with redirecting from http back to https
We have few services which we setup on LTM. For some of them the requirement i...
Yann_Desmarest
Cirrus
Sep 05, 2014Hello,
Firstly, you should set only one HTTP_REQUEST event per irule :
when HTTP_REQUEST {
if { ( [string trim [HTTP::uri]] contains "Client_name_a" ) } {
set uri [HTTP::uri [string map {"/Client_name/" "/"} [HTTP::uri]]]
pool ab.example.com_Pool_a
}
if { ( [string trim [HTTP::uri]] contains "Client_name_b" ) } {
set uri [HTTP::uri [string map {"/Client_name/" "/"} [HTTP::uri]]]
pool ab.example.com_Pool_b
}
}
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