Forum Discussion
Sheetal_43349
Nimbostratus
Nov 18, 2018URL and uri redirection
Hello,
I need to enabled redirection on a virtual server on service say xyz.com where if anyone types xyz.com/ABCD/, the url should change to ghi.com/MNOP.
I have tried several irule but do...
Nov 18, 2018
Hey Sheetal
Use the following iRule:
when HTTP_REQUEST {
if { (([HTTP::host] == "xyz.com") && ([HTTP::uri] == "/ABCD/" )) }{
HTTP::redirect http://ghi.com/MNOP
}
}
You can also use Local Traffic Policies for this as well which is quite simple:
K15085: Overview of the Local Traffic Policies feature (11.4.0 - 12.0.0)
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
