allow redirection from http to https when getting pages