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 doesnt seem to be working.
Please advise how to change both url and uri.
regards Sheetal
- nikzin_341815
Nimbostratus
You can do it very easy with a LTM Policy.
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)
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