attempts to remove links to http resources favoring local https