Forum Discussion
Assistance in Irule
Hi
Am new to irule and need assistance for below http redirect
when user enter http://learning.abc.com it should redirect to http://inside.abc.com/learn and also when user enter
it should be redirect like below with first uri match
host and first uri should match in redirection
I used below irule, it works for first redirection but not the other one
when HTTP_REQUEST { if { [string tolower [HTTP::host]] equals "learning.abc.com" } { HTTP::redirect "http://inside.abc.com/Learn" } }
- Kevin_StewartEmployee
Try a minor modification:
when HTTP_REQUEST { if { [string tolower [HTTP::host]] equals "learning.abc.com" } { HTTP::redirect "http://inside.abc.com/learn[HTTP::uri]" } }
This will add the requested URI to the end of the redirect URI. If nothing is requested (no URI), then the minimum will be "/", as in
http://inside.abc.com/learn/
- Rajendran2002_1Nimbostratus
Thank you , it works well
Recent Discussions
Related Content
* 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