Forum Discussion
Suresh_Jo_32729
Nimbostratus
Apr 04, 2018Need to create one irule to rediect uri abc.ra.well.com/portallogon(not actual uri) to the same uri with extention /irj/portal
I need to create one irule to rediect uri abc.ra.well.com/portallogon(not actual uri) to the same uri with extention /irj/portal. As of now I have to test it via one server and after successfully tes...
Suresh_Jo_32729
Nimbostratus
Apr 04, 2018when HTTP_REQUEST { check if this host is in the main datagroup if { [HTTP::host] equals "abc.ra.well.com/portallogon" and [HTTP::uri] equals "/" } { set newuri "/irj/portal" HTTP::uri "$newuri" set newurl [class match -value [string tolower [HTTP::host]] equals redirect_datagroup]
if the host is not found in the main datagroup, check the secondary datagroup
if {$newurl eq ""}
{
check if this host is in the secondary datagroup that requires uri be included
set newurl2 [class match -value [string tolower [HTTP::host]] equals redirect_datagroup2]
Sending again..
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