That’s the same domain, you simply have different hostnames. You can add “Host” to your rule to filter here further.
Can you give an example?
Check out the filter expressions and in particular the host field. You just need to filter on that field.