Uses ENV for https redirect