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

spalande's avatar
spalande
Icon for Nacreous rankNacreous
Jun 16, 2020

iRule assistance

Is it possible to use iRule to have redirect for following requirement?

 

https://*.abc.com ---> https://*.xyz.com

where * can be any name and should be retain in redirecting to xyz.com

 

Ex. https://education.abc.com ----> https://education.xyz.com

https://review.abc.com ---> https://review.xyz.com

 

1 Reply

  • Try below irule which will solve redirection issue.

    when HTTP_REQUEST {
      HTTP::redirect "https://[string tolower [getfield [HTTP::host] "." 1].xyz.com"
    }