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
Cirrus
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"
}
}
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