Forum Discussion
Rajendran2002_1
Jul 24, 2015Nimbostratus
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
htt...
Kevin_Stewart
Jul 24, 2015Employee
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/
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