Revert "Use only the first subdomain"

This reverts commit a3ad0f4e8af6dd853fe2c373582b43eead9461f2.