Custom is url function to handle better localhost