Forum Discussion

SanjayP's avatar
SanjayP
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"
    }