Handling invalid domain urls