Forum Discussion
KT_271103
Nimbostratus
Sep 23, 2016Irule
Can anyone check whether below statement is correct for given irule?
Below Irule indicate the uri part would be lower case and as per 1st condition if it is
empty "" then no URI insert. 2nd conditio...
Stanislas_Piro2
Cumulonimbus
Sep 23, 2016Hi,
"" will never occurs. when requesting https://cache-monitor-AMG.com, the URI is /
when checking URI / and "", no need to convert URI to lower case as [string tolower /] is /
if requested URL is https://cache-monitor-AMG.com, do not redirect to "https://cache-monitor-AMG.com/home" but "/home". The browser will open URL on the same site with provided URI.
when HTTP_REQUEST {
if { [HTTP::uri] equals "/" } {
HTTP::redirect "/home"
}
}
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