Replace/remove HTTPS code