Forum Discussion
Srinivas_Kandik
Nimbostratus
May 12, 2009URL Change when redirecting
I would like to switch the context of the url when redirecting, need help on how to write the iRule.
For all http://www.abc.com/app1/xyz/1.html requests i would like to redirect them to http://www.abc.com/app2/xyz/1.html
Need to handle both GET and POST requests.
Any pointers.
- The_Bhattman
Nimbostratus
when HTTP_REQUEST { if {([HTTP::host] eq "www.abc.com") && ([HTTP::uri] eq "/app1/xyz/1.html") } { HTTP::redirect "[HTTP::host]/app2/xyz/1.html" } }
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