Forum Discussion
franktruong3
Jul 22, 2021Nimbostratus
irule: redirect to different paths with same host.
Hi,
I'm new at F5 and iRule.
I try to redirect from root location to different path on the same node.
https://abc.domain.com -> https://abc.domain.com/path
What is wrong with this rule?
=================iRule===================================================
when HTTP_REQUEST {
if { ([string tolower [HTTP::host]] eq "abc.domain.com") } {
HTTP::redirect "https://abc.domain.com/path"
}
}
=========================================================================
- spalandeNacreous
if { ([string tolower [HTTP::host]] eq "abc.domain.com") and ([HTTP::uri] eq "/")} {
- franktruong3NimbostratusIt works….Thanks SanjayP!!!
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