Forum Discussion
Brian_Gupta_115
Nimbostratus
Jan 12, 2005Converting a 4.5 rule to an iRule
I have the following 4..5 rule that I need to convert to an irule... Can someone please help me?
Thanks,
Brian
if (http_uri contains "HR" or http_uri con...
Brian_Gupta_115
Nimbostratus
Jan 14, 2005Your examples where very helpful... My final rule:
when HTTP_REQUEST {
set my_uri [string tolower [HTTP::uri]]
if { $my_uri contains "hr" } {
redirect to "https://pshr.txxx.com/hr"
} elseif { $my_uri contains "selfservice" } {
redirect to "https://pshr.txxx.com/selfservice"
} elseif { $my_uri contains "finti" } {
redirect to "https://psfin.txxx.com/finti"
} elseif { $my_uri contains "fintl" } {
redirect to "https://psfin.txxx.com/fintl"
} elseif { $my_uri contains "finspc" } {
redirect to "https://psfin.txxx.com/finspc"
}
}
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
