Why is the URL with 'http' working but 'https' is not?