fixed SSL url detection