Forum Discussion

franktruong3's avatar
franktruong3
Icon for Nimbostratus rankNimbostratus
Jul 22, 2021

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"

   }

}

=========================================================================