You’ll need to add a space between equals and “subdomain.xxx.com”. And if this iRule is added to the HTTP virtual server, you might want to add a check for the path. Else I think you’ll get an infinite loop of redirects to http://subdomain.xxxxx.com/parameter?yyyy=ZZ.
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] eq "subdomain.xxxxx.com" && [HTTP::path] eq "/"} {
HTTP::redirect "http://subdomain.xxxxx.com/parameter?yyyy=ZZ"
}
}