cancel
Showing results for 
Search instead for 
Did you mean: 

iRule assistance

SanjayP
MVP
MVP

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 1

Samir
Nacreous
Nacreous

Try below irule which will solve redirection issue.

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