Forum Discussion
Chirag_Mehta_15
Nimbostratus
May 23, 2016URL redirect based on content
Hi,
I am new to iRules and need help achieving redirect based on content
e.g if my URL is https://xxx.abc.com/xyz then it should redirect to https://yyy.xyz.com/nnn/ppp
Please can you...
Yann_Desmarest_
Nacreous
May 23, 2016Hi,
You can use the following irule :
when HTTP_REQUEST {
if { [HTTP::host] eq "xxx.abc.com" and [HTTP::path] eq "/xyz" } {
HTTP::respond 302 Location "https://yyy.xyz.com/nnn/ppp"
}
}
Yann_Desmarest_
Nacreous
May 25, 2016Hi, Yes this event is triggered also by https but only if you do ssl offloading or bridging (attach clientssl/serverssl profiles). When using SSL, all the flow is encrypted, but with ssl offloading, headers are in plain text
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