Use urlparse, not regex to check url