F5 is upgrading its customer support chat feature on My.F5.com. Chat support will be unavailable from 6am-10am PST on 1/20/26. Refer to K000159584 for details.

Forum Discussion

5 Replies

  • im sure someone will just provide it, but this is really simple and in my opinion you would help yourself by writing it yourself. the elements you need are a HTTP_REQUEST event, checking the HTTP::URI and doing a HTTP::redirect. if you google on any redirect irule it will even get easier to work from that example. do yourself a favor and learn to do it.
  • JG's avatar
    JG
    Icon for Cumulonimbus rankCumulonimbus

    Are you aware of LTM Policy? It can do many things just as iRules do but without the requirement of programming skills. See: https://devcentral.f5.com/articles/ltm-policy for details. It may be a preferred way to iRules in many circumstances.

     

    (BTW, I love iRules myself.)

     

  • I know this is too old thread, but it came up. I think this should be it,

    when HTTP_REQUEST {
        if { [string tolower [HTTP::host]] ends_with "test.jobcredits.com" } 
        {
            HTTP::redirect "https://www.test.jobcredits.co[HTTP::uri]"
        }
    }