I’m looking to send around 20 domains we have purchased to our one main domain. I understand I can use the below iRule but how do I add these multiple domains into one rule? Can I list them, or does there need to be a statement for each subdomain? This must be a 301 redirect, as 302 is not accepted by my SEO team. I understand that the LTM Policy manager can only redirect as a 301.
when HTTP_REQUEST { if { not ([HTTP::host] eq “domain.com”) } { HTTP::respond Location 301 https://www.domain.com/ } }