manage https  and url version