fixes more http vs https redirect nonsense