Better handling for different kinds of domain urls