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"
}
}
tlsarles_253441
Nimbostratus
May 25, 2016Does the HTTP_REQUEST get triggered for HTTPS as well? Also, for this to work, do we need to be doing SSL offload? Isn't the hostname in the HTTP headers, which would be encrypted?
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