redirect API url to https