Handle both http and https links