Handling for custom domains.