sandy16
Dec 03, 2014Altostratus
Irule help for host header redirection
Hi experts, I need to write an irule which will redirect some different host headers/urls to one single-different url. After doing some digging around on devcentral i found this one should do the job -
when HTTP_REQUEST { if {[HTTP::host] equals "www.example.com" } { HTTP::redirect "https://mywebsite.com" } }
Let`s say I also need to redirect two more host headers like "abccorp.com" and "xyzmedia.ca" to the same "https://mywebsite.com" , how can i redo my above irule? Should it be with multiple "if" statements?